netket.callbacks.ConvergenceStopping#
- class netket.callbacks.ConvergenceStopping[source]#
Bases:
object
A simple callback to stop the optimisation if the loss gets below a certain threshold. based on driver._loss_name.
- Inheritance
- Attributes
-
monitor:
str
= 'mean'# Loss statistic to monitor. Should be one of ‘mean’, ‘variance’, ‘sigma’.
-
patience:
int
= 10# The loss must be consistently below this value for this number of iterations in order to stop the optimisation.
-
monitor: