utils#

Standalone utility functions for InferenceData operations.

Functions

aggregate_idata_dims(idata, dim, values, ...)

Aggregate multiple dimension values into one.

aggregate_idata_time(idata, period[, method])

Aggregate InferenceData over time periods.

filter_idata_by_dates(idata[, start_date, ...])

Filter InferenceData to a date range.

filter_idata_by_dims(idata, **dim_filters)

Filter InferenceData by dimension values.

get_posterior_predictive(idata)

Return the posterior_predictive group from idata.

get_prior(idata)

Return the prior group from idata.

get_prior_predictive(idata)

Return the prior_predictive group from idata.

idata_from_zarr(store)

Load an InferenceData from a Zarr store.

idata_to_zarr(idata, store[, groups])

Save an InferenceData to a Zarr store.

subsample_draws(dataset, *, num_samples[, ...])

Subsample draws from a Dataset with chain and draw dimensions.