Save intermediate models

Hi,

How I can save the model after each iteration?
Are there any regular features? Or which method should I change?

Hi Alexey,

you can use for example Directives.SaveModelEveryIteration

directives = [
    Directives.BetaEstimate_ByEig(beta0_ratio=1e-2),
    Directives.TargetMisfit(),
    Directives.SaveModelEveryIteration()
]
inv = Inversion.BaseInversion(invProb, directiveList=directives)
1 Like