pymc.backends.NDArray.get_sampler_stats#

NDArray.get_sampler_stats(stat_name, sampler_idx=None, burn=0, thin=1)#

Get sampler statistics from the trace.

Note: This implementation attempts to squeeze object arrays into a consistent dtype, # which can change their shape in hard-to-predict ways. # See pymc-devs/pymc#6207

Parameters:
stat_namestr

Name of the stat to fetch.

sampler_idxint or None

Index of the sampler to get the stat from.

burnint

Draws to skip from the start.

thinint

Stepsize for the slice.

Returns:
statsnp.ndarray

If sampler_idx was specified, the shape should be (draws,). Otherwise, the shape should be (draws, samplers).