arviz.to_netcdf#

arviz.to_netcdf(data, filename, *, group='posterior', coords=None, dims=None)[source]#

Save dataset as a netcdf file.

WARNING: Only idempotent in case data is InferenceData

Parameters
dataInferenceData, or any object accepted by convert_to_inference_data

Object to be saved

filenamestr

name or path of the file to load trace

groupstr (optional)

In case data is not InferenceData, this is the group it will be saved to

coordsdict (optional)

See convert_to_inference_data

dimsdict (optional)

See convert_to_inference_data

Returns
str

filename saved to