Nixtla Releases StatsForecast 1.7.5: Elevating Time Series Forecasting with MFLES and Scikit-Learn Integration (2024)

0 Shares

Nixtla unveiled StatsForecast 1.7.5, a significant update bringing new features and enhancements that further solidify its position as a leading tool for univariate time series forecasting. This release introduces the innovative MFLES model and a convenient wrapper for scikit-learn models, allowing users to leverage exogenous features easily.

One of the standout features of this release is the addition of the MFLES (Median Fourier Linear Exponential Smoothing) model, contributed by Tyler Blume. This model stands out for its excellent performance, speed, and versatility, supporting exogenous features and handling multiple seasonalities with aplomb. The MFLES model is based on gradient-boosted time Series Decomposition, integrating traditional decomposition techniques as the base estimator in the boosting process. It derives its name from the underlying estimators: Median, Fourier terms, Linear trends, and Exponential Smoothing. This combination allows the MFLES model to offer robust and accurate forecasting, making it a valuable addition to the StatsForecast arsenal.

The new release also includes a wrapper for scikit-learn models, enabling users to utilize the rich feature engineering capabilities of scikit-learn in their time series forecasting tasks. The `statsforecast.models.SklearnModel` wrapper allows training one model per series, which can be more effective than a single global model in certain scenarios. This integration offers flexibility and enhances the modeling power of StatsForecast, making it easier to incorporate external variables like weather or prices into forecasting models.

StatsForecast addresses the limitations of existing Python alternatives for statistical models, which are often slow, inaccurate, and not scalable. Designed for high performance and scalability, StatsForecast can efficiently fit millions of time series, making it suitable for production environments and benchmarking purposes.

Key Features and Performance of StatsForecast 1.7.5 include:

Automatic Forecasting: StatsForecast includes automatic tools like AutoARIMA, AutoETS, AutoCES, and AutoTheta, which search for the best parameters and models for a group of time series. These tools are optimized for performance, ensuring fast and accurate results.

Model Variety: From ARIMA and Theta families to models for multiple seasonalities and GARCH/ARCH models, StatsForecast covers a wide range of forecasting needs.

Speed and Efficiency: The library is 20x faster than pmdarima, 1.5x faster than R, and significantly faster than other popular tools like Prophet and statsmodels. By using numba to compile high-performance machine code, StatsForecast sets a new standard for speed and efficiency.

Compatibility and Integration: Out-of-the-box compatibility with Spark, Dask, and Ray allows seamless integration into various data processing pipelines. The library also supports probabilistic forecasting, confidence intervals, anomaly detection, and exogenous variables.

User-Friendly Syntax: With familiar sklearn-like syntax, StatsForecast offers an intuitive interface for fitting and predicting time series models, making it accessible to users of all levels.

Installing StatsForecast is straightforward. It can be installed using pip or conda:

pip install statsforecastconda install -c conda-forge statsforecast

For a quick start, the following example demonstrates fitting and predicting with the AutoARIMA model:

from statsforecast import StatsForecastfrom statsforecast.models import AutoARIMAfrom statsforecast.utils import AirPassengersDFdf = AirPassengersDFsf = StatsForecast(models=[AutoARIMA(season_length=12)], freq='M')sf.fit(df)sf.predict(h=12, level=[95])

Examples and Guides of StarForecast:

  • End-to-end Walkthrough: Model training, evaluation, and selection for multiple time series.
  • Anomaly Detection: Detect anomalies in time series using in-sample prediction intervals.
  • Cross Validation: Robust performance evaluation of models.
  • Multiple Seasonalities: Forecast data with multiple seasonalities using an MSTL.
  • Predict Demand Peaks: Electricity load forecasting for detecting daily peaks and reducing electric bills.
  • Intermittent Demand: Forecast series with very few non-zero observations.
  • Exogenous Regressors: Utilize external variables like weather or prices in forecasting models.

In conclusion, StatsForecast 1.7.5 is a game-changer for univariate time series forecasting, offering speed, accuracy, and flexibility. Adding the MFLES model and scikit-learn integration expands the tool’s capabilities, making it an indispensable resource for data scientists and analysts. Whether forecasting demand peaks, detecting anomalies, or handling multiple seasonalities is needed, StatsForecast provides the tools and performance required.

Asif Razzaq

Website | + posts

Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

0 Shares

Nixtla Releases StatsForecast 1.7.5: Elevating Time Series Forecasting with MFLES and Scikit-Learn Integration (2024)
Top Articles
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 6031

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.