Skip to main content

Skforecast is a Python library for time series forecasting using machine learning models. It works with any regressor compatible with the scikit-learn API, including popular options like LightGBM, XGBoost, CatBoost, Keras, and many others.

Project description

Package Python PyPI Downloads Downloads Maintenance Project Status: Active
Meta License DOI
Testing Build status codecov
Donation paypal buymeacoffee GitHub Sponsors
Community !slack
Affiliation NumFOCUS Affiliated

Table of Contents

About The Project

Skforecast is a Python library for time series forecasting using machine learning models. It works with any regressor compatible with the scikit-learn API, including popular options like LightGBM, XGBoost, CatBoost, Keras, and many others.

Why use skforecast?

Skforecast simplifies time series forecasting with machine learning by providing:

  • :jigsaw: Seamless integration with any scikit-learn compatible regressor (e.g., LightGBM, XGBoost, CatBoost, etc.).
  • :repeat: Flexible workflows that allow for both single and multi-series forecasting.
  • :hammer_and_wrench: Comprehensive tools for feature engineering, model selection, hyperparameter tuning, and more.
  • :building_construction: Production-ready models with interpretability and validation methods for backtesting and realistic performance evaluation.

Whether you're building quick prototypes or deploying models in production, skforecast ensures a fast, reliable, and scalable experience.

Get Involved

We value your input! Here are a few ways you can participate:

  • Report bugs and suggest new features on our GitHub Issues page.
  • Contribute to the project by submitting code, adding new features, or improving the documentation.
  • Share your feedback on LinkedIn to help spread the word about skforecast!

Together, we can make time series forecasting accessible to everyone.

Documentation

Explore the full capabilities of skforecast with our comprehensive documentation:

:books: https://skforecast.org

Documentation
:book: Introduction to forecasting Basics of forecasting concepts and methodologies
:rocket: Quick start Get started quickly with skforecast
:hammer_and_wrench: User guides Detailed guides on skforecast features and functionalities
:mortar_board: Examples and tutorials Learn through practical examples and tutorials to master skforecast
:question: FAQ and tips Find answers and tips about forecasting
:books: API Reference Comprehensive reference for skforecast functions and classes
:memo: Releases Keep track of major updates and changes
:mag: More Discover more about skforecast and its creators

Installation & Dependencies

To install the basic version of skforecast with core dependencies, run the following:

pip install skforecast

For more installation options, including dependencies and additional features, check out our Installation Guide.

What is new in skforecast 0.16?

All significant changes to this project are documented in the release file.

Forecasters

A Forecaster object in the skforecast library is a comprehensive container that provides essential functionality and methods for training a forecasting model and generating predictions for future points in time.

The skforecast library offers a variety of forecaster types, each tailored to specific requirements such as single or multiple time series, direct or recursive strategies, or custom predictors. Regardless of the specific forecaster type, all instances share the same API.

Forecaster Single series Multiple series Recursive strategy Direct strategy Probabilistic prediction Time series differentiation Exogenous features Window features
ForecasterRecursive :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
ForecasterDirect :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
ForecasterRecursiveMultiSeries :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
ForecasterDirectMultiVariate :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
ForecasterRNN :heavy_check_mark: :heavy_check_mark:
ForecasterSarimax :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:

Examples and tutorials

Explore our extensive list of examples and tutorials (English and Spanish) to get you started with skforecast. You can find them here.

How to contribute

Primarily, skforecast development consists of adding and creating new Forecasters, new validation strategies, or improving the performance of the current code. However, there are many other ways to contribute:

  • Submit a bug report or feature request on GitHub Issues.
  • Contribute a Jupyter notebook to our examples.
  • Write unit or integration tests for our project.
  • Answer questions on our issues, Stack Overflow, and elsewhere.
  • Translate our documentation into another language.
  • Write a blog post, tweet, or share our project with others.

For more information on how to contribute to skforecast, see our Contribution Guide.

Visit our About section to meet the people behind skforecast.

Citation

If you use skforecast for a scientific publication, we would appreciate citations to the published software.

Zenodo

Amat Rodrigo, Joaquin, & Escobar Ortiz, Javier. (2025). skforecast (v0.16.0). Zenodo. https://doi.org/10.5281/zenodo.8382788

APA:

Amat Rodrigo, J., & Escobar Ortiz, J. (2025). skforecast (Version 0.16.0) [Computer software]. https://doi.org/10.5281/zenodo.8382788

BibTeX:

@software{skforecast,
author = {Amat Rodrigo, Joaquin and Escobar Ortiz, Javier},
title = {skforecast},
version = {0.16.0},
month = {5},
year = {2025},
license = {BSD-3-Clause},
url = {https://skforecast.org/},
doi = {10.5281/zenodo.8382788}
}

View the citation file.

Donating

If you found skforecast useful, you can support us with a donation. Your contribution will help us continue developing, maintaining, and improving this project. Every contribution, no matter the size, makes a difference. Thank you for your support!


Become a GitHub Sponsor
Become a GitHub Sponsor

paypal

License

Skforecast software: BSD-3-Clause License

Skforecast documentation: CC BY-NC-SA 4.0

Trademark: The trademark skforecast is registered with the European Union Intellectual Property Office (EUIPO) under the application number 019109684. Unauthorized use of this trademark, its logo, or any associated visual identity elements is strictly prohibited without the express consent of the owner.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skforecast-0.16.0.tar.gz (642.8 kB view details)

Uploaded Source

Built Distribution

skforecast-0.16.0-py3-none-any.whl (815.0 kB view details)

Uploaded Python 3

File details

Details for the file skforecast-0.16.0.tar.gz.

File metadata

  • Download URL: skforecast-0.16.0.tar.gz
  • Upload date:
  • Size: 642.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for skforecast-0.16.0.tar.gz
Algorithm Hash digest
SHA256 a5bb7f3628c3d79895fda8f6c43e384f446bcf6704323313409773e0d300e322
MD5 68c621af2df3eeb504b459664caa8e69
BLAKE2b-256 5b68e6234eea6d0e990f9749310fa61d3683d20a86b536774db29ba3993cba42

See more details on using hashes here.

File details

Details for the file skforecast-0.16.0-py3-none-any.whl.

File metadata

  • Download URL: skforecast-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 815.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for skforecast-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76808fd5df697356500bbf242ec53f2ce9157809dbccf2f4d0f4f632e8817efe
MD5 205b99013f3a85a4488759a5d6a0852e
BLAKE2b-256 752aa5098a8d3d4378a0e5939613d39b93ce6d6348c1ee305114221579c4b6dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page