CallbackShowConvergence¶
-
class
odl.solvers.util.callback.
CallbackShowConvergence
(functional, title='convergence', logx=False, logy=False, **kwargs)[source]¶ Bases:
odl.solvers.util.callback.Callback
Displays a convergence plot.
Methods
reset
(self)Set
iter
to 0.-
__init__
(self, functional, title='convergence', logx=False, logy=False, \*\*kwargs)[source]¶ Initialize a new instance.
- Parameters
- functionalcallable
Function that is called with the current iterate and returns the function value.
- titlestr, optional
Title of the plot.
- logxbool, optional
If true, the x axis is logarithmic.
- logxbool, optional
If true, the y axis is logarithmic.
- Other Parameters
- kwargs :
Additional parameters passed to the scatter-plotting function.
-