Skip to content

Day 2 (1 Dec 2026)

Plan

  • P2: matrix factorization trained with BPR, compared with P1 and the popularity baselines
  • Make every confidence interval reproducible from code
  • Set the visual theme for the YouTube series

Done

  • P2 BPR in plain numpy: recsys/models/bpr.py, with step-by-step comments on how the learning works
  • Early stopping in the harness: each BPR setting trains once and is scored on validation at several epoch counts
  • Per-user scores saved with every run, and recsys/compare.py for paired bootstrap intervals. EXP-001's intervals now come from code in the repo (they match the published ones within ±0.0007)
  • EXP-002: BPR ties item-to-item and loses to 30-day popularity. Project note: P2
  • Video theme for the series: the same night river as the GitHub banner, red only for faults

Broke

  • The first BPR run (30 epochs) scored no better than all-time popularity. It looked like a bug. It was under-training: the loss stalled while the item bias learned popularity, and taste only started after about 15 epochs.
  • The 200-epoch grid stopped while the best setting was still improving, so the result could have been unfair to BPR. Trained on to 500 epochs; it closed most of the gap but still only tied.
  • EXP-001's bootstrap intervals came from a script that was never committed. Fixed with recsys/compare.py.

Learned

  • Matrix factorization learns popularity first, taste later. Tune the epoch count, or a good model looks useless.
  • Learned embeddings do not fix freshness. Under a time split with a launch-driven catalogue, they tie item similarity.
  • BPR took 16 minutes to tie a 3-second baseline. Training cost belongs in every comparison.

Next

  • Add a cold/warm split to the harness: scores on new versus established games
  • Week 3: P3, YouTube's deep candidate generation, with the "example age" freshness feature
  • Record Episode 1 of RecSysOps in Practice