arviz.from_dict

arviz.from_dict(posterior=None, *, posterior_predictive=None, predictions=None, sample_stats=None, log_likelihood=None, prior=None, prior_predictive=None, sample_stats_prior=None, observed_data=None, constant_data=None, predictions_constant_data=None, warmup_posterior=None, warmup_posterior_predictive=None, warmup_predictions=None, warmup_log_likelihood=None, warmup_sample_stats=None, save_warmup=None, index_origin: Optional[int] = None, coords=None, dims=None, pred_dims=None, pred_coords=None, attrs=None)[source]

Convert Dictionary data into an InferenceData object.

For a usage example read the Creating InferenceData section on from_dict

Parameters
posteriordict
posterior_predictivedict
predictions: dict
sample_statsdict
log_likelihooddict

For stats functions, log likelihood data should be stored here.

priordict
prior_predictivedict
observed_datadict
constant_datadict
predictions_constant_data: dict
warmup_posteriordict
warmup_posterior_predictivedict
warmup_predictionsdict
warmup_log_likelihooddict
warmup_sample_statsdict
save_warmupbool

Save warmup iterations InferenceData object. If not defined, use default defined by the rcParams.

index_originint, optional
coordsdict[str, iterable]

A dictionary containing the values that are used as index. The key is the name of the dimension, the values are the index values.

dimsdict[str, List(str)]

A mapping from variables to a list of coordinate names for the variable.

pred_dimsdict[str, List(str)]

A mapping from variables to a list of coordinate names for predictions.

pred_coordsdict[str, List(str)]

A mapping from variables to a list of coordinate values for predictions.

attrsdict

A dictionary containing attributes for different groups.

Returns
InferenceData object