model
Model
Bases: ABC
Base class for models.
A model is used to predict outputs for given inputs.
predict(input_features)
abstractmethod
Predict outputs for the given inputs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_features
|
Data
|
The inputs for which to predict the outputs. |
required |
Returns:
Type | Description |
---|---|
Data
|
The predicted outputs. |
Source code in src/flowcean/core/model.py
17 18 19 20 21 22 23 24 25 26 |
|
save(path)
abstractmethod
Save the model to path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
The path to save the model to. |
required |
Source code in src/flowcean/core/model.py
28 29 30 31 32 33 34 |
|
load(path)
abstractmethod
Load the model from path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
The path to load the model from. |
required |
Source code in src/flowcean/core/model.py
36 37 38 39 40 41 42 |
|