simpeg.regularization.Sparse.update_weights#
- Sparse.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 forSparseSmallness.update_weights()
. And forSparseSmoothness
objects, visit the documentation forSparseSmoothness.update_weights()
.- Parameters:
- model(
n_params
, )numpy.ndarray
The model used to recompute the IRLS weights.
- model(