- class SimPEG.optimization.Remember#
This mixin remembers all the things you tend to forget.
You can remember parameters directly, naming the str in Minimize, or pass a tuple with the name and the function that takes Minimize.
opt.remember('f',('norm_g', lambda M: np.linalg.norm(M.g))) opt.minimize(evalFunction, x0) opt.recall('f')
The param name (str) can also be located in the parent (if no conflicts), and it will be looked up by default.