arviz.InferenceData.to_dict#

InferenceData.to_dict(groups=None, filter_groups=None)[source]#

Convert InferenceData to a dictionary following xarray naming conventions.

Parameters:
groupslist, optional

Groups where the transformation is to be applied. Can either be group names or metagroup names.

filter_groups: {None, “like”, “regex”}, optional, default=None

If None (default), interpret groups as the real group or metagroup names. If “like”, interpret groups as substrings of the real group or metagroup names. If “regex”, interpret groups as regular expressions on the real group or metagroup names. A la pandas.filter.

Returns:
dict

A dictionary containing all groups of InferenceData object. When data=False return just the schema.