arviz.to_json#
- arviz.to_json(idata, filename)[source]#
Save dataset as a json file.
Will use the faster
ujson
(ultrajson/ultrajson) if it is available.WARNING: Only idempotent in case
idata
is InferenceData.- Parameters:
- idata
InferenceData
Object to be saved
- filename
str
name or path of the file to load trace
- idata
- Returns:
str
filename saved to