CLVModel.load#
- classmethod CLVModel.load(fname)[source]#
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:
Returns
an
instance of ModelBuilder.
- Raises:
ValueError
If the inference data that is loaded doesn’t match with the model.
Examples
>>> class MyModel(ModelBuilder): >>> ... >>> name = "./mymodel.nc" >>> imported_model = MyModel.load(name)