LogisticCombinerHyperParams#
- class openstef_meta.models.forecast_combiners.LogisticCombinerHyperParams(*, fit_intercept: bool = True, penalty: Literal['l1', 'l2', 'elasticnet'] = 'l2', c: float = 1.0)[source]
Bases:
HyperParamsHyperparameters for the logistic regression classifier.
- fit_intercept: bool
- penalty: Literal['l1', 'l2', 'elasticnet']
- c: float
- get_classifier() ClassifierMixin[source]
Create a logistic regression classifier from these hyperparameters.
- Return type:
- Returns:
Configured LogisticRegression instance.
- 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].