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
|
DataFrame
|
The inputs for which to predict the outputs. |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
The predicted outputs. |
Source code in src/flowcean/core/model.py
17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
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
31 32 33 34 35 36 37 |
|
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
39 40 41 42 43 44 45 |
|