In this article
A product identifier alone cannot determine a store-specific weekly price or the correct day in an M5 forecasting experiment.
Daily sales and weekly prices have different keys
A retail forecasting pipeline can multiply its training rows without reporting a database error. Joining M5 prices to sales using only an item identifier ignores the store and week dimensions. The resulting table may contain believable prices attached to the wrong observations. Define the cardinality of every join before training, and distinguish units sold from currency-valued explanatory variables rather than treating every numeric column as an interchangeable target.
Resolve the sales day through the calendar
The competitors’ guide describes the daily sales columns, calendar day identifiers and the week key. Reshaping sales into a long table must retain the daily identifier. Map that identifier to the calendar record, then obtain the week associated with the day. Deriving dates from a newly generated row number becomes fragile after filtering, sorting or combining separate sales files.
Keep store and item in the price lookup
The guide defines prices for an item, store and week. Validate uniqueness on that composite key before joining and verify that the sales-row count stays unchanged afterward. A price unavailable for a week is not automatically an observed zero price. Preserve its documented meaning and an explicit missingness representation. Filling it with another store’s price changes the explanatory information, even if the item name is identical.
Preserve hierarchy and competition phase
The organizers’ account explains the hierarchical sales task. Aggregated series and bottom-level series serve different reporting roles; concatenating them without an identity scheme can double-count observations in later summaries. The official repository also distinguishes validation and evaluation data and associated scoring weights. Preserve the phase of downloaded targets and weights rather than mixing files solely because their column names agree.
Test the relational contract before forecasting
Inspect a product sold in different stores across a changing price period. Confirm calendar mapping, price-key uniqueness and stable row counts, then reconstruct a selected hierarchy aggregate from the intended bottom-level rows. Entity-aware dataset design and software provenance provide adjacent controls. These checks identify the actual learning table. They do not prove a model’s ranking, authorize a claim of measured business impact or turn a new preprocessing experiment into an unchanged reproduction of the competition.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.