BaseMMM.load_from_idata#
- classmethod BaseMMM.load_from_idata(idata, check=True)#
 Create a ModelBuilder instance from an InferenceData object.
This class method has a few steps:
Construct a new instance of the model using the InferenceData attrs
Build the model from the InferenceData
Check if the model id matches the id in the InferenceData loaded.
- Parameters:
 - idata
az.InferenceData The InferenceData object to load the model from.
- checkbool, optional
 Whether to check if the model id matches the id in the InferenceData loaded. Defaults to True.
- idata
 - Returns:
 ModelBuilderAn instance of the ModelBuilder class.
- Raises:
 DifferentModelErrorIf the model id in the InferenceData does not match the model id built.