inversion_ideas.directives.UpdateSensitivityWeights#

class inversion_ideas.directives.UpdateSensitivityWeights(*args, simulation, weights_key='sensitivity', **kwargs)#

Update sensitivity weights on regularizations.

Note

This directive can only be applied to regularizations that:

  1. have a cell_weights attribute,

  2. the cell_weights attribute is a dictionary, and

  3. the cell_weights attribute contains weights under the key specified through the weights_key argument (“sensitivity” by default).

Parameters:
*argsObjective

Regularizations to which the sensitivity weights will be updated. If a inversion_ideas.base.Combo or a inversion_ideas.base.Scaled are passed, they will be explored recursively to use regularizations that have sensitivity weights that can be updated.

simulationSimulation

Simulation used to get the jacobian matrix that will be used while updating the sensitivity weights.

weights_keystr, optional

Key used to store the sensitivity weights on the regularization’s cell_weights dictionary. Only the weights under this key will be updated.

**kwargs

Extra arguments passed to the inversion_ideas.utils.get_sensitivity_weights() function.

Methods

__call__(model, iteration)

Update sensitivity weights.

Methods#

Methods documentation

UpdateSensitivityWeights.__call__(model, iteration)#

Update sensitivity weights.