10 Best Time-series Python Libraries in 2023 for Fast Models

Time series analysis involves examining data points collected over time, with the goal of identifying patterns and trends that can inform future predictions. Here’s a list of all relevant libraries for Time Series Forecasting. Good to have these gems in your bucket:

๐Ÿ“šskforecast

Skforecast is a Python library that eases using scikit-learn regressors as single and multi-step forecasters. It also works with any regressor compatible with the scikit-learn API (LightGBM, XGBoost, CatBoost)

Link

๐Ÿ“š PyCaret

PyCaret replaces hundreds of lines of code with few lines only. Its time-series forecasting is in pre-release mode with –pre tag with 30+ algorithms. It includes automated hyperparameter tuning, experiment logging and deployment on cloud.

Link

๐Ÿ“š Darts

Darts contains many models ranging from ARIMA to deep neural networks. It also lets users combine predictions from several models and external regressors, which makes it easier to backtest models.

Link

๐Ÿ“š Flow forecast

Flow forecast is a deep learning for time series forecasting framework. It provides the latest models (transformers, attention models, GRUs) and cutting edge concepts with interpretability metrics. It is the only true end-to-end deep learning for time series forecasting framework.

Link

๐Ÿ“š Auto_TS

Auto_TS train multiple time series models with just one line of code and is a part of AutoML.

Link

๐Ÿ“š sktime

Sktime an extension to scikit-learn includes machine learning time-series for regression, prediction, and classification. This library has the most features with interfaces scikit-learn, statsmodels, TSFresh and PyOD.

Link

๐Ÿ“š Pmdarima

Pmdarima is a wrapper over ARIMA with automatic Hyperparameter tuning for analyzing, forecasting, and visualizing time series data including transformers and feature creation, including Box-Cox and Fourier transformations and a seasonal decomposition tool.

Link

๐Ÿ“š TSFresh

TSFresh is not a forecasting library, per se, but automates feature extraction and selection from time series. It has Dimensionality reduction, Outlier detection and missing values.

Link

๐Ÿ“š Pyflux

Pyflux builds a probabilistic model, very advantageous for tasks where a more complete picture of uncertainty is needed, and the latent variables are treated as random variables through a joint probability.

Link

๐Ÿ“š Prophet

Facebookโ€™s Prophet is a forecasting tool for CSV format and is suitable for strong seasonal data and robust to missing data and outliers.

Link

๐Ÿ“š Statsforecast

Statsforecast offers a collection of univariate time series. It includes ADIDA, HistoricAverage, CrostonClassic, CrostonSBA, CrostonOptimized, SeasonalNaive, IMAPA Naive, RandomWalkWithDrift, TSB, AutoARIMA and ETS.

Impressive fact: It is 20x faster than pmdarima , 500x faster than Prophet,100x faster than NeuralProphet, 4x faster than statsmodels.

Link

๐Ÿ“š NeuralProphet

NeuralProphet is a Neural Network based Time-Series model, inspired by Facebook Prophet and AR-Net, built on PyTorch.

Link

Sources

[1] https://moez-62905.medium.com/top-python-libraries-for-time-series-analysis-in-2022-eebe95913085and

[2] https://towardsdatascience.com/5-unexplored-python-libraries-for-time-series-analysis-e9375962fbb2

[3] https://medium.com/data-science-at-microsoft/python-open-source-libraries-for-scaling-time-series-forecasting-solutions-3485c3bd8156

Matt von Rohr
Matt von Rohr

#ai #datascience #machinelearning #dataengineering #dataintegration

Articles: 31

Leave a Reply

Your email address will not be published. Required fields are marked *

×