pymc.backends.base.BaseTrace.get_sampler_stats#
- BaseTrace.get_sampler_stats(stat_name, sampler_idx=None, burn=0, thin=1)[source]#
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:
- Returns:
- stats
np.ndarray
If sampler_idx was specified, the shape should be (draws,). Otherwise, the shape should be (draws, samplers).
- stats