flexmeasures.data.models.forecasting.custom_models.base_model

Classes

class flexmeasures.data.models.forecasting.custom_models.base_model.BaseModel(max_forecast_horizon: int, probabilistic: bool, auto_regressive: bool, use_past_covariates: bool, use_future_covariates: bool)

Base model for multi-horizon forecasting.

This class serves as a foundation for forecasting models that predict multiple time steps into the future. It supports probabilistic forecasting and ensures that no negative values are returned in the predictions.

Attributes:

max_forecast_horizon (int): Maximum forecast horizon, indicating the number of steps ahead to predict. probabilistic (bool): Whether the model produces probabilistic forecasts.

Note:

Predictions from this model (or its subclasses) will never yield negative values, as any negative predictions are automatically set to zero.

__init__(max_forecast_horizon: int, probabilistic: bool, auto_regressive: bool, use_past_covariates: bool, use_future_covariates: bool) None
abstract _setup() None

Set up the model. This method should be implemented by subclasses to perform any additional initialization or configuration specific to the model.