simpeg.regularization.VectorAmplitude.update_weights#

VectorAmplitude.update_weights(model)[source]#

Update IRLS weights for all child regularization objects.

For an instance of the Sparse regularization class, this method re-computes and updates the IRLS for all child regularization objects using the model provided. To see how IRLS weights are recomputed for SparseSmallness objects, visit the documentation for SparseSmallness.update_weights(). And for SparseSmoothness objects, visit the documentation for SparseSmoothness.update_weights().

Parameters:
model(n_params, ) numpy.ndarray

The model used to recompute the IRLS weights.