Model Helpers
Useful functions/class/types for defining loss functions, metrics, model loading and data augmentation
Config Loading
load_module
load_module (module_name:str, module_path:pathlib.Path)
Load a module from a file path.
Type | Details | |
---|---|---|
module_name | str | The name of the module to load |
module_path | Path | The path to the module |
Returns | object | The loaded module |
load_yaml
load_yaml (file_path:pathlib.Path)
Load a yaml file.
Type | Details | |
---|---|---|
file_path | Path | The path to the YAML file |
Returns | Dict | The loaded module |
Abstract Classes and Types
AbstractModel
AbstractModel ()
An abstract class for models
AbstractModel.predict
AbstractModel.predict (x:xarray.core.dataset.Dataset)
AbstractModel.contributions
AbstractModel.contributions (x:xarray.core.dataset.Dataset)