linear_regression
LinearRegression(input_size, output_size, learning_rate=0.001, loss=None)
Bases: SupervisedIncrementalLearner
Linear regression learner.
Initialize the learner.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_size
|
int
|
The size of the input. |
required |
output_size
|
int
|
The size of the output. |
required |
learning_rate
|
float
|
The learning rate. |
0.001
|
loss
|
Module | None
|
The loss function. |
None
|
Source code in src/flowcean/learners/linear_regression.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|