random_forest
RandomForestRegressorLearner(*args, **kwargs)
Bases: SupervisedLearner
Wrapper class for sklearn's RandomForestRegressor.
Reference: https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html
Initialize the random forest learner.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*args
|
Any
|
Positional arguments to pass to the RandomForestRegressor. |
()
|
**kwargs
|
Any
|
Keyword arguments to pass to the RandomForestRegressor. |
{}
|
Source code in src/flowcean/sklearn/random_forest.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
learn(inputs, outputs)
Fit the random forest regressor on the given inputs and outputs.
Source code in src/flowcean/sklearn/random_forest.py
41 42 43 44 45 46 47 48 49 50 |
|