netket.stats.Stats#
- class netket.stats.Stats[source]#
Bases:
objectA dict-compatible pytree containing the result of the statistics function.
- Inheritance

- Attributes
- R_hat: float = nan#
Estimator of the split-Rhat convergence estimator.
The split-Rhat diagnostic is based on comparing intra-chain and inter-chain statistics of the sample and is thus only available for 2d-array inputs where the rows are independently sampled MCMC chains. In an ideal MCMC samples, R_hat should be 1.0. If it deviates from this value too much, this indicates MCMC convergence issues. Thresholds such as R_hat > 1.1 or even R_hat > 1.01 have been suggested in the literature for when to discard a sample. (See, e.g., Gelman et al., Bayesian Data Analysis, or Vehtari et al., arXiv:1903.08008.)
- shape#
Shape of the estimated quantity — always
()for scalar Stats.
- tau_corr: float = nan#
Estimate of the autocorrelation time (in dimensionless units of number of steps).
This value is estimated with a blocking algorithm by default, but the result is known to be unreliable. A more precise estimator based on the FFT transform can be used by setting the environment variable NETKET_EXPERIMENTAL_FFT_AUTOCORRELATION=1. This estimator is more computationally expensive, but overall the added cost should be negligible.