MMM.build_from_idata#

MMM.build_from_idata(idata)[source]#

Rebuild the model from an InferenceData object.

Uses the stored fit dataset in idata to reconstruct the model graph by calling build_model(). This is commonly used as part of a load workflow to restore a model prior to sampling predictive quantities.

Parameters:
idataaz.InferenceData

Inference data containing the fit dataset under the fit_data group.

Returns:
None

Notes

  • Expects idata.fit_data to exist and contain both features and the

    target column named self.output_var.

  • Sets self.idata to the provided idata, enabling downstream

    methods like sample_posterior_predictive to access posterior samples.

Examples

mmm.build_from_idata(idata)