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:
object
Contains the results of the MCMC engine.
Easy access to the samples is provided via the methods
get_samples()
andget_posterior_samples()
.Methods
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 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.
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.