antoinecarme / pyaf

PyAF is an Open Source Python library for Automatic Time Series Forecasting built on top of popular pydata modules.
BSD 3-Clause "New" or "Revised" License
458 stars 73 forks source link

Add XGBoost based models #98

Closed antoinecarme closed 5 years ago

antoinecarme commented 5 years ago

Need to evaluate models of the type :

Transformed_Signal = Trend + Periodic + XGBoostRegressor(target = PeriodicResidue, input = PeriodicResidue_Lags)

Of course, this is done inside the competition (all possible combinations of transformations, trends and periodics are tested).

antoinecarme commented 5 years ago

Easy to implement,. A generic scikit-learn model can already be used (SVR models are OK).

A new package dependency

pip install xgboost
antoinecarme commented 5 years ago

create anew branch pyaf_xgboost

antoinecarme commented 5 years ago

Time series models based on XGBoost regressors has been added. They are not activated by default.

Need to activate these using something like :

lEngine.mOptions.set_active_autoregressions(['AR', 'XGB']);
antoinecarme commented 5 years ago

Add XGBX models (past of the signal + past of the exogenous variables)

Transformed_Signal = Trend + Periodic + XGBoostRegressor(target = PeriodicResidue, input = PeriodicResidue_Lags + Exogenous_Lags)

antoinecarme commented 5 years ago

Fixed.

Some tests here :

https://github.com/antoinecarme/pyaf/tree/master/tests/xgb

Closing.