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_namestr

Name of the stat to fetch.

burnint

Draws to skip from the start.

thinint

Stepsize for the slice.

combinebool

If True, results from chains will be concatenated.

chainsint or sequence of int, optional

Chains to include. Defaults to all chains.

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.

Returns:
statsnp.ndarray

List or ndarray depending on parameters.