arviz.InferenceData.to_json#

InferenceData.to_json(filename, groups=None, filter_groups=None, **kwargs)[source]#

Write InferenceData to a json file.

Parameters:
filenamestr

Location to write to

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.

kwargsdict

kwargs passed to json.dump()

Returns:
str

Location of json file