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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file m5-wrmsse-1.0.0.tar.gz.

File metadata

  • Download URL: m5-wrmsse-1.0.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for m5-wrmsse-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e4dc3d9ef2f29e5366525e6edd9321567fb590c40ab29ec5a256acd30f7a0591
MD5 9810ec1e0e11cb094939078f2307a93d
BLAKE2b-256 3eb7a2a280f8efcec9dbff8e5979c1674f3e6bd1dd510f97e8f7b195727a208f

See more details on using hashes here.

File details

Details for the file m5_wrmsse-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: m5_wrmsse-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for m5_wrmsse-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c925862d8558feafa9990b29c9ba5b1ccc323119792c6215eb69811a20a9f53
MD5 8609ef8b2f5734e2928160453a71f95e
BLAKE2b-256 d7608f96d58666d7493feaab031da34527777124c39584803f099c8016c35829

See more details on using hashes here.

Supported by

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