skforecast¶
Time series forecasting with scikit-learn regressors.
Skforecast is a python library that eases using scikit-learn regressors as multi-step forecasters. It also works with any regressor compatible with the scikit-learn API (pipelines, CatBoost, LightGBM, XGBoost, Ranger...).
Info
Version 0.4 has undergone huge code refactoring. Major changes are related to input-output formats (only pandas series and dataframes are allowed although internally numpy arrays are used for performance) and model validation methods (unified into backtesting with and without refit). All notable changes are listed in Releases.
Installation¶
1 |
|
Specific version:
1 |
|
Latest (unstable):
1 |
|
Dependencies¶
1 2 3 4 5 |
|
Features¶
- Create recursive autoregressive forecasters from any regressor that follows the scikit-learn API
- Create multi-output autoregressive forecasters from any regressor that follows the scikit-learn API
- Include exogenous variables as predictors
- Include custom predictors (rolling mean, rolling variance ...)
- Multiple backtesting methods for model validation
- Grid search to find optimal lags (predictors) and best hyperparameters
- Include custom metrics for model validation and grid search
- Prediction interval estimated by bootstrapping
- Get predictor importance
- Forecaster in production
Examples and tutorials¶
English¶
Skforecast: time series forecasting with Python and Scikit-learn
Forecasting electricity demand with Python
Forecasting web traffic with machine learning and Python
Forecasting time series with gradient boosting: Skforecast, XGBoost, LightGBM and CatBoost
Bitcoin price prediction with Python
Prediction intervals in forecasting models
Español¶
Skforecast: forecasting series temporales con Python y Scikit-learn
Forecasting de la demanda eléctrica
Forecasting de las visitas a una página web
Forecasting series temporales con gradient boosting: Skforecast, XGBoost, LightGBM y CatBoost
Predicción del precio de Bitcoin con Python
Intervalos de predicción en modelos de forecasting
Donating¶
If you found skforecast useful, you can support us with a donation. Your contribution will help to continue developing and improving this project. Many thanks!
License¶
joaquinAmatRodrigo/skforecast is licensed under the MIT License, a short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.