Reference / binference.io.to_datatree
binference.io.to_datatree¶
- binference.io.to_datatree(result)[source]¶
Convert to an
xarray.DataTreewithposteriorandsample_statsgroups.Follows the ArviZ (>= 1.0) layout: dimensions
chain,drawandbin, with the bins’ centres as numeric coordinates (bin_center, orbin_center_<d>per axis of a grid), hyperparameter draws in the posterior, and the NUTS statistics under ArviZ’s names (acceptance_rate,n_steps, booleandiverging). Requires xarray >= 2024.10.- Parameters:
- resultPopulationResult
The result.