ADR-002: Time windows and splits¶
- Status: Accepted
- Date: 2026-11-27
Context¶
RecChaos needs two different uses of time from the same dataset (ADR-001, Video_Games 5-core):
- A replay window, replayed day by day with daily retraining, where faults are injected. It needs steady daily traffic.
- A fixed offline split for the six projects (P1–P6), so every paper is compared on the same future data.
Daily volume (median interactions per day) from the Day 1 exploration:
| Period | Median per day |
|---|---|
| 2014–2016 | about 225 |
| 2021–2022 | about 118 |
| 2023 | about 32 |
2023 is normal until March, then falls from about 4,400 interactions a month to about 100 by August, and the data ends on 2023-09-02. The most likely cause is that data collection ended partway through the year. The 5-core filter makes it worse, because recent users haven't had time to write five reviews.
Options¶
- Replay the most recent data (2023): most realistic "now", but too thin to retrain daily
- Replay 2021–2022, exclude 2023: steady volume, two full years including two holiday seasons
- Replay an older, busier window (2014–2016): more traffic, but leaves little history for warm-up
Decision¶
Option 2.
| Window | Dates | Interactions |
|---|---|---|
| Warm-up training | everything before 2021-01-01 | 706,593 |
| Replay | 2021-01-01 → 2022-12-31 (730 days, about 118 per day) | 90,622 |
| Excluded | 2023-01-01 onward | 17,371 |
Offline split for P1–P6:
| Split | Dates | Interactions | Users | Users with training history |
|---|---|---|---|---|
| Train | up to 2022-09-30 | 780,826 | ||
| Validation | 2022-10-01 → 2022-11-30 | 10,831 | 4,737 | 4,001 |
| Test | 2022-12-01 → 2022-12-31 | 5,558 | 3,051 | 2,461 |
Evaluation scores only users who appear in the evaluated period. Metrics: Recall@10, Recall@50, NDCG@10.
Consequences¶
- Every project is compared on identical future data, so "B beats A" claims are like for like
- The split is strictly by time, so there is no leakage from the future into training
- About 19% of test users (590 of 3,051) have no training history, and some test interactions are with items never seen in training. Week 1 scores only users with history and drops unseen items (
recsys/split.py: eval_targets); both counts are logged with every run. New users and new items are the cold-start problem, handled from fault 9 onward - Validation fits on train and scores Oct–Nov; test refits on train + validation (everything before 2022-12-01) and scores December once
- The test month is December, a holiday peak (volume rises from about 3,800 in September to 6,000 in November). Revisit if results look seasonal
- The offline train period overlaps the replay window; that is fine because the two are used for different experiments, but no replay result should be compared directly with a P1–P6 test score