forecaster.wrappers.xgb

forecaster.wrappers.xgb

Recursive forecaster model wrappers for different estimators.

Classes

Name Description
ForecasterRecursiveXGB ForecasterRecursive specialization using XGBoost.

ForecasterRecursiveXGB

forecaster.wrappers.xgb.ForecasterRecursiveXGB(iteration, lags=12, **kwargs)

ForecasterRecursive specialization using XGBoost.

Attributes

Name Type Description
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.
xgb
True