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:
have a
cell_weightsattribute,the
cell_weightsattribute is a dictionary, andthe
cell_weightsattribute contains weights under the key specified through theweights_keyargument (“sensitivity” by default).
- Parameters:
- *argsObjective
Regularizations to which the sensitivity weights will be updated. If a
inversion_ideas.base.Comboor ainversion_ideas.base.Scaledare 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_weightsdictionary. 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.