- class netket.callbacks.Timeout#
A simple callback to stop NetKet after some time has passed.
Constructs a new Timeout object that monitors whether a driver has been training for more than a given timeout in order to hard stop training.
timeout – Number of seconds to wait before hard stopping training.
- __call__(step, log_data, driver)#
A boolean function that determines whether or not to stop training.
step – An integer corresponding to the step (iteration or epoch) in training.
log_data – A dictionary containing log data for training.
driver – A NetKet variational driver.
A boolean. If True, training continues, else, it does not.
This callback does not make use of step, log_data nor driver.
Resets the initial time of the training