Skip to main content

Other

Hourly

Daily

Weekly

Monthly

Quarterly

Yearly

Download data class

M4

M4.async_download

Download M4 Dataset. Parameters: Example:

M4.download

Download M4 Dataset. Parameters:

M4.load

Downloads and loads M4 data. Parameters: Returns:

Evaluation class

M4Evaluation

M4Evaluation.evaluate

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

M4Evaluation.load_benchmark

Downloads and loads a bechmark forecasts. Parameters: Returns:

URL-based evaluation

The method evaluate from the class M4Evaluation can receive a url of a benchmark uploaded to the M4 competiton. The results compared to the on-the-fly evaluation were obtained from the official evaluation.

Numpy-based evaluation

Also the method evaluate can recevie a numpy array of forecasts.