forecaster.wrappers.xgb
Recursive forecaster model wrappers for different estimators.
Classes
ForecasterRecursiveXGB
forecaster.wrappers.xgb.ForecasterRecursiveXGB(iteration, lags=12, **kwargs)
ForecasterRecursive specialization using XGBoost.
Attributes
| forecaster |
|
The XGBoost forecaster. |
| name |
|
The name of the forecaster. |
Examples
from spotforecast2_safe.forecaster.wrappers import (
ForecasterRecursiveModel,
ForecasterRecursiveXGB,
)
model = ForecasterRecursiveXGB(iteration=0)
print(model.name)
print(isinstance(model, ForecasterRecursiveModel))
XGBoost not installed. This model will fail during fit/predict.