Skip to main content

WRMSSE score for the M5 dataset

Project description

M5 WRMSSE

Calculate the WRMSSE of a 28-day forecast for the M5 competition hosted by Kaggle. Instead of uploading submission files to Kaggle for an accuracy score, install the m5-wrmsse package and calculate it locally.

For more information on the derivation, visit

https://www.pmorgan.com.au/tutorials/wrmsse-for-the-m5-dataset/

Installation

Clone the repo

git clone git@github.com:pmrgn/m5-wrmsse.git

Or download and install the package using pip

pip install m5-wrmsse

Usage

The wrmsse function returns the WRMSSE of a 28-day forecast, equivalent to what Kaggle calculates for it's public leaderboard. First, import the function

from m5_wrmsse import wrmsse

Pass your forecast as a numpy array to the function, which must be of shape (30490, 28).

my_forecast = np.ones((30490,28))     # Forecast example containing all ones
score = wrmsse(my_forecast)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m5-wrmsse-1.0.0.tar.gz (1.2 MB view hashes)

Uploaded Source

Built Distribution

m5_wrmsse-1.0.0-py3-none-any.whl (1.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page