Skforecast is a Python library for time series forecasting using statistical and machine learning models. It works with any estimator compatible with the scikit-learn API, including LightGBM, XGBoost, CatBoost, Keras, and many others. Current version is 0.22.0, with a release cadence of roughly quarterly.
pip install skforecastVerified import paths — ran on the pinned version, not inferred.
Basic usage: create a ForecasterAutoreg with a random forest regressor and 10 lags, fit on a univariate series, and predict 5 steps ahead.
Replace `from skforecast.model_selection import grid_search_forecaster` with `from skforecast.model_selection import BacktestGridSearch` and adjust usage.
Change import to `from skforecast.preprocessing import TimeSeriesDifferentiator`.
Use `ForecasterAutoregMultiOutput` with steps parameter.
Ensure function returns array with correct dimensions; test with a small dataset first.
Always convert to pd.Series: `y = pd.Series(y_array)`.
Remove `selector_step` and pass `feature_selection=True` to `fit()`.