simpeg.regularization.BaseAmplitude#
- class simpeg.regularization.BaseAmplitude(mesh, active_cells=None, mapping=None, reference_model=None, units=None, weights=None, **kwargs)[source]#
- Bases: - BaseVectorRegularization- Base amplitude regularization class for models defined by vector quantities. - The - BaseAmplitudeclass defines properties and methods used by amplitude regularization classes for vector quantities. It is not directly used to constrain inversions.- Attributes - Weighting matrix. - Active cells defined on the regularization mesh. - Mapping from the inversion model parameters to the regularization mesh. - The model parameters. - Number of model parameters. - Number of components in the model. - The parent objective function - Reference model. - Regularization mesh. - Units for the model parameters. - Return the keys for the existing cell weights - Methods - __call__(m)- Evaluate the regularization function for the model provided. - amplitude(m)- Return vector amplitudes for the model provided. - deriv(m)- Gradient of the regularization function evaluated for the model provided. - deriv2(m[, v])- Hessian of the regularization function evaluated for the model provided. - f_m(m)- Not implemented for - BaseRegularizationclass.- f_m_deriv(m)- Not implemented for - BaseRegularizationclass.- get_weights(key)- Cell weights for a given key. - map_class- alias of - IdentityMap- remove_weights(key)- Removes the weights for the key provided. - set_weights(**weights)- Adds (or updates) the specified weights to the regularization. - test([x, num, random_seed])- Run a convergence test on both the first and second derivatives. 
