arviz.InferenceData.to_json#
- InferenceData.to_json(filename, groups=None, filter_groups=None, **kwargs)[source]#
Write InferenceData to a json file.
- Parameters:
- filename
str
Location to write to
- groups
list
, 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 lapandas.filter
.- kwargs
dict
kwargs passed to json.dump()
- filename
- Returns:
str
Location of json file