SamplesSummary.from_array()#
- classmethod SamplesSummary.from_array(a, quantiles=(0.05, 0.5, 0.95), hdi_prob=0.9, selected=None, deselected=None, per_chain=False, name='v', which=('mean', 'sd', 'var', 'quantiles', 'hdi', 'ess_bulk', 'ess_tail', 'rhat', 'mcse_mean', 'mcse_sd'))[source]#
Initializes the summary from an array of samples.
- Parameters:
a (
Any) – The array of samples to summarize.hdi_prob (
float) – Level on which to return posterior highest density intervals. (default:0.9)selected (
list[str] |None) – Allow to get a summary only for a subset of the position keys. (default:None)deselected (
list[str] |None) – Allow to get a summary only for a subset of the position keys. (default:None)per_chain (
bool) – If True, the summary is calculated on a per-chain basis. Certain measures likerhatare not available ifper_chainis True. (default:False)name (
str) – Variable name to use for labelling into_dataframe(). (default:'v')
- Return type: