gemseo.mlearning.regression.algos.random_forest module#
Random forest regression model.
Use an ensemble of decision trees.
Dependence#
The regression model relies on the RandomForestRegressor
class
of the scikit-learn library.
- class RandomForestRegressor(data, settings_model=None, **settings)[source]#
Bases:
BaseRegressor
Random forest regression.
- Parameters:
data (Dataset) -- The learning dataset.
settings_model (BaseMLAlgoSettings | None) -- The machine learning algorithm settings as a Pydantic model. If
None
, use**settings
.**settings (Any) -- The machine learning algorithm settings. These arguments are ignored when
settings_model
is notNone
.
- Raises:
ValueError -- When both the variable and the group it belongs to have a transformer.
- Settings#
alias of
RandomForestRegressor_Settings