Skip to main content
This notebook was originally executed using DataBricks
The purpose of this notebook is to create a scalability benchmark (time and performance). To that end, Nixtla’s StatsForecast (using the ETS model) is trained on the M5 dataset using spark to distribute the training. As a comparison, Facebook’s Prophet model is used. An AWS cluster (mounted on databricks) of 11 instances of type m5.2xlarge (8 cores, 32 GB RAM) with runtime 10.4 LTS was used. This notebook was used as base case. The example uses the M5 dataset. It consists of 30,490 bottom time series.

Main results

Installing libraries

StatsForecast pipeline

Forecast

With statsforecast you don’t have to download your data. The distributed backend can handle a file with your data.

Evaluating performance

The M5 competition used the weighted root mean squared scaled error. You can find details of the metric here.

Prophet pipeline

Download data

Forecast function using Prophet

Training Prophet on the M5 dataset

Evaluating performance

The M5 competition used the weighted root mean squared scaled error. You can find details of the metric here.