netket.logging.AbstractLog#

class netket.logging.AbstractLog[source]#

Bases: ABC

Abstract base class detailing the interface that loggers must implement in order to work with netket drivers.

It can be passed with keyword argument out to Monte Carlo drivers in order to serialize the output data of the simulation.

Inheritance
Inheritance diagram of netket.logging.AbstractLog
__init__()#
Methods
abstract __call__(step, item, variational_state=None)[source]#

Logs at a given integer step a dictionary of data, optionally specifying a variational state to encode additional data.

Parameters:
  • step (int) – monotonically increasing integer representing the row in the database corresponding to this log entry;

  • item (dict[str, Any]) – Any dictionary of data to be logged;

  • variational_state (Optional[VariationalState]) – optional variational state from which additional data might be extracted.

abstract flush(variational_state=None)[source]#

Flushes the data that is stored internally to disk/network.

Parameters:

variational_state (Optional[VariationalState]) – optional variational state from which additional data might be extracted.