Skip to main content

M5

M5.download

Downloads M5 Competition Dataset. Parameters:

M5.load

Downloads and loads M5 data. Parameters: Returns:

M5.source_url

Evaluation class

M5Evaluation

M5Evaluation.aggregate_levels

Aggregates the 30_490 series to get 42_840. Parameters: Returns:

M5Evaluation.evaluate

Evaluates y_hat according to M5 methodology. Parameters: Returns: Examples:

M5Evaluation.levels

M5Evaluation.load_benchmark

Downloads and loads benchmark forecasts. Parameters: Returns: Example:

URL-based evaluation

The method evaluate from the class M5Evaluation can receive a url of a submission to the M5 competition. The results compared to the on-the-fly evaluation were obtained from the official evaluation.

Pandas-based evaluation

Also the method evaluate can receive a pandas DataFrame of forecasts.
By default you can load the winner benchmark using the following.

Validation evaluation

You can also evaluate the official validation set.