Sequential Recommendation: Session Embedding & Next-Item Prediction (2D)
Interactive 2D simulator of session-based recommendation: click items to build a viewing sequence, watch a recency-weighted session vector move through embedding space, and see live softmax next-item predictions update.
Session-based recommenders (GRU4Rec, SASRec, and the models behind YouTube's and TikTok's next-video queues) don't treat a user's history as an unordered bag of likes — they encode the sequence, weighting recent interactions more heavily so a session can pivot direction after a single strong signal. This simulator places 48 catalogue items as embedding points in a 2D latent space, lets you click items to build a real viewing session, and computes a recency-weighted session vector live. A softmax over the distance from that vector to every unclicked item's embedding produces a genuine next-item probability distribution, visualised as glowing rings sized by confidence — with a recency-weight slider that morphs the model continuously between plain averaging (bag-of-items, like classic collaborative filtering) and sharp last-item-dominant sequential prediction.
Click items to build a viewing session in 3D embedding space and watch a recency-weighted session vector drive a live softmax next-item prediction, the mechanic behind session-based recommenders like GRU4Rec and SASRec.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install