Data

Inference library converters

from_cmdstan([posterior, ...])

Convert CmdStan data into an InferenceData object.

from_cmdstanpy([posterior, ...])

Convert CmdStanPy data into an InferenceData object.

from_emcee([sampler, var_names, slices, ...])

Convert emcee data into an InferenceData object.

from_numpyro([posterior, prior, ...])

Convert NumPyro data into an InferenceData object.

from_pyjags([posterior, prior, ...])

Convert PyJAGS posterior samples to an ArviZ inference data object.

from_pymc3([trace, prior, ...])

Convert pymc3 data into an InferenceData object.

from_pymc3_predictions(predictions[, ...])

Translate out-of-sample predictions into InferenceData.

from_pyro([posterior, prior, ...])

Convert Pyro data into an InferenceData object.

from_pystan([posterior, ...])

Convert PyStan data into an InferenceData object.

IO / General conversion

convert_to_inference_data(obj, *[, group, ...])

Convert a supported object to an InferenceData object.

convert_to_dataset(obj, *[, group, coords, dims])

Convert a supported object to an xarray dataset.

dict_to_dataset(data, *[, attrs, library, ...])

Convert a dictionary of numpy arrays to an xarray.Dataset.

from_dict([posterior, posterior_predictive, ...])

Convert Dictionary data into an InferenceData object.

from_json(filename)

Initialize object from a json file.

from_netcdf(filename[, group_kwargs, regex])

Load netcdf file back into an arviz.InferenceData.

to_netcdf(data, filename, *[, group, ...])

Save dataset as a netcdf file.

General functions

concat()

Concatenate InferenceData objects.

Data examples

list_datasets()

Get a string representation of all available datasets with descriptions.

load_arviz_data([dataset, data_home, regex])

Load a local or remote pre-made dataset.