pymc.backends.base.MultiTrace.get_sampler_stats#
- MultiTrace.get_sampler_stats(stat_name, burn=0, thin=1, combine=True, chains=None, squeeze=True)[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:
- stat_name
str
Name of the stat to fetch.
- sampler_idx
int
orNone
Index of the sampler to get the stat from.
- burn
int
Draws to skip from the start.
- thin
int
Stepsize for the slice.
- combinebool
If True, results from chains will be concatenated.
- squeezebool
Return a single array element if the resulting list of values only has one element. If False, the result will always be a list of arrays, even if combine is True.
- stat_name
- Returns:
- stats
np.ndarray
List or ndarray depending on parameters.
- stats