netket.optimizer.SR

netket.optimizer.SR(diag_shift=0.01, method=None, *, iterative=True, **kwargs)[source]

Construct the structure holding the parameters for using the Stochastic Reconfiguration/Natural gradient method.

Depending on the arguments, an implementation is chosen. For details on all possible kwargs check the specific SR implementations in the documentation.

You can also construct one of those structures directly.

Parameters
  • diag_shift (float) – Diagonal shift added to the S matrix

  • method (Optional[str]) – (cg, gmres) The specific method.

  • iterative (bool) – Whever to use an iterative method or not.

Return type

SR

Returns

The SR parameter structure.