GBLinearHyperParams#
- class openstef_models.models.forecasting.gblinear_forecaster.GBLinearHyperParams(*, n_steps: int = 500, updater: str = 'shotgun', learning_rate: float = 0.15, objective: Union[ObjectiveFunctionType, Literal['reg:quantileerror']] = 'reg:quantileerror', evaluation_metric: EvaluationFunctionType = 'mean_pinball_loss', reg_alpha: float = 0.0001, reg_lambda: float = 0.1, feature_selector: str = 'shuffle', top_k: int = 0, random_state: int | None = None, early_stopping_rounds: int | None = 10)[source]
Bases:
HyperParamsHyperparameter configuration for GBLinear forecaster.
- Parameters:
- n_steps: int
- updater: str
- learning_rate: float
- evaluation_metric: EvaluationFunctionType
- reg_alpha: float
- reg_lambda: float
- feature_selector: str
- top_k: int
- classmethod forecaster_class() type[GBLinearForecaster][source]
Forecaster class for these hyperparams.
- Return type:
type[GBLinearForecaster]- Returns:
Forecaster class associated with this configuration.
- 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].