BaseValidateMMM.load#
- classmethod BaseValidateMMM.load(fname)#
Create a ModelBuilder instance from a file.
Loads inference data for the model.
- Parameters:
- fname
str This denotes the name with path from where idata should be loaded from.
- fname
- Returns:
Returnsaninstance of ModelBuilder.
- Raises:
ValueErrorIf the inference data that is loaded doesn’t match with the model.
Examples
Load a model from a file
file_name: str = "./mymodel.nc" model = MyModel.load(file_name)