Directives (SimPEG.directives
)#
Directives are classes that allow us to control the inversion, perform tasks
between iterations, save information about our inversion process and more.
Directives are passed to the SimPEG.inversion.BaseInversion
class through
the directiveList
argument. The tasks specified through the directives are
executed after each inversion iteration, following the same order as in which
they are passed in the directiveList
.
Although you can write your own directive classes and plug them into your inversion, we provide a set of useful directive classes that cover a wide range of applications:
General purpose directives#
|
Estimate the alphas multipliers for the smoothness terms of the regularization as a multiple of the ratio between the highest eigenvalue of the smallness term and the highest eigenvalue of each smoothness term of the regularization. |
|
Estimate initial trade-off parameter (beta) using largest derivatives. |
|
Estimate initial trade-off parameter (beta) by power iteration. |
|
Reduce trade-off parameter (beta) at successive iterations using a cooling schedule. |
|
For multiple data misfits only: rebalance each data misfit term during the inversion when some datasets are fit, and others not using the ratios of current misfits and their respective target. |
|
Attributes |
|
Trick for spherical coordinate system. |
For multiple data misfits only: multiply each data misfit term by the inverse of its highest eigenvalue and then normalize the sum of the data misfit multipliers to one. |
|
|
. |
|
Create a Jacobi preconditioner for the linear problem |
|
Sensitivity weighting for linear and non-linear least-squares inverse problems. |
|
Create approx-sensitivity base weighting using the probing method |
Directives to save inversion results#
|
This directive saves an array at each iteration. |
|
This directive saves the model as a numpy array at each iteration. |
|
Saves inversion parameters at every iteration. |
|
Attributes |
Base directive classes#
The InversionDirective
class defines the basic class for all directives.
Inherit from this class when writing your own directive. The DirectiveList
is used under the hood to handle the execution of all directives passed to the
SimPEG.inversion.BaseInversion
.
|
Base inversion directive class. |
|
Directives list |