random_forest
RandomForestRegressorLearner(n_estimators=100, *, criterion='squared_error', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features=1.0, max_leaf_nodes=None, min_impurity_decrease=0.0, bootstrap=True, oob_score=False, n_jobs=None, random_state=None, verbose=0, warm_start=False, ccp_alpha=0.0, max_samples=None, monotonic_cst=None)
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.
Reference: https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
learn(inputs, outputs)
Fit the random forest regressor on the given inputs and outputs.
Source code in src/flowcean/sklearn/random_forest.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|