netket.errors.DriverResetDeprecationWarning

netket.errors.DriverResetDeprecationWarning#

exception netket.errors.DriverResetDeprecationWarning[source]#

Warning issued when calling the deprecated reset() method on a driver.

The method reset() has been split into two separate concerns: - reset_step() to reset the sampler state at the start of each step. - _step_count is no longer reset by default; construct a new driver if you need a fresh step count.

Examples

Instead of:

driver.reset()

Use:

driver.reset_step()