SamplingResults#
- class liesel.goose.SamplingResults(positions, transition_infos, generated_quantities, tuning_infos, kernel_states, full_model_states, kernel_classes, kernels_by_pos_key)[source]#
Bases:
objectContains the results of the MCMC engine.
Easy access to the samples is provided via the methods
get_samples()andget_posterior_samples().Methods
Returns a dictionary of adaptation samples for all parameters included in the position.
get_error_log([posterior_only])Returns the error log that is an dict[kernel_name, KernelErrorLog]
Returns a dict, identifying the kernel used to sample each position.
Returns a dict, identifying the position keys governed by each kernel.
Returns dictionary of acceptance probabilities during posterior by kernel.
Returns dictionary of transition movements (0: no move, 1: move) during posterior by kernel.
Returns a dictionary of posterior samples for all parameters included in the position.
Returns a dictionary of posterior transition information for all parameters included in the position.
Returns a dictionary of all samples for all parameters included in the position.
Returns array of tuning times.
Returns dictionary of acceptance probabilities during warmup by kernel.
get_warmup_kernel_states([process_state])If available, returns a dictionary of kernel states recorded during warmup, organized by kernel.
Returns dictionary of transition movements (0: no move, 1: move) during warmup by kernel.
Returns a dictionary of adaptation samples for all parameters included in the position.
Returns a dictionary of posterior transition information for all parameters included in the position.
pkl_load(path)Loads the pickled object from
path.pkl_save(path)Save result as a pickled object under
path.Attributes
EpochChainManager giving access to monitored variables.
EpochChainManager storing all transition infos.
Option[EpochChainManager] storing all generated_quantities.
Option[Chain] storing all tuning infos.
Option[EpochChainManager] holds all kernel states.
Option[EpochChainManager] holds the full model state of each iteration.
Optional map of kernel identifier to the respective kernel type.
Optional map of position key to identifier of the for sampling responsible kernel.