pymc.backends.base.MultiTrace.get_values#

MultiTrace.get_values(varname, burn=0, thin=1, combine=True, chains=None, squeeze=True)[source]#

Get values from traces.

Parameters:
varname: str
burn: int
thin: int
combine: bool

If True, results from chains will be concatenated.

chains: int or list of ints

Chains to retrieve. If None, all chains are used. A single chain value can also be given.

squeeze: bool

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:
A list of NumPy arrays or a single NumPy array (depending on
squeeze).