netket.logging

netket.logging#

This module contains the loggers that can be used with drivers by passing them to the out= keyword argument of run().

Inheritance diagram of netket.logging, netket.experimental.logging

The base class follows the API protocol declared here. You should reimplement this class to make a logger that works well together with our drivers.

AbstractLog

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

While the loggers available for simulations are the following:

RuntimeLog

This logger accumulates log data in a set of nested dictionaries which are stored in memory.

JsonLog

This logger serializes expectation values and other log data to a JSON file and can save the latest model parameters in MessagePack encoding to a separate file.

StateLog

A logger which serializes the variables of the variational state during a run.

TensorBoardLog

Creates a tensorboard logger using tensorboardX's summarywriter.

HDF5Log

HDF5 Logger, that can be passed with keyword argument logger to Monte Carlo drivers in order to serialize the output data of the simulation.

MLFlowLog

Logger that streams metrics and optional model checkpoints to an MLflow tracking server.

SaveVariationalState

Callback to save the variational state at fixed intervals.

In the netket.experimental module there are also some experimental loggers such as the HDF5 logger