RFCombinerHyperParams#
- class openstef_meta.models.forecast_combiners.RFCombinerHyperParams(**data: Any) None[source]
Bases:
HyperParamsHyperparameters for the LGBM random-forest classifier.
- Parameters:
data (
Any)
-
n_estimators:
int
-
n_leaves:
int
-
bagging_freq:
int
-
bagging_fraction:
float
-
feature_fraction:
float
- get_classifier() ClassifierMixin[source]
Create an LGBM random-forest classifier from these hyperparameters.
- Return type:
- Returns:
Configured LGBMClassifier instance in random-forest mode.
- Raises:
MissingExtraError – If lightgbm is not installed.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': False, 'extra': 'ignore', 'protected_namespaces': ()}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].