arviz.from_dict

arviz.from_dict(posterior=None, *, posterior_predictive=None, sample_stats=None, prior=None, prior_predictive=None, sample_stats_prior=None, observed_data=None, coords=None, dims=None)[source]

Convert Dictionary data into an InferenceData object.

Parameters:
posterior : dict
posterior_predictive : dict
sample_stats : dict

“log_likelihood” variable for stats needs to be here.

prior : dict
prior_predictive : dict
observed_data : dict
coords : dict[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.

dims : dict[str, List(str)]

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

Returns:
InferenceData object