Recommender Systems Lab

Recommender Systems Lab

Learn how recommender systems work through interactive experiments computed in your browser: collaborative filtering, content-based, hybrid, matrix factorization, deep learning, sequential, knowledge-based and evaluation, then build a recommendation project on your own data.

  • 8Labs
  • 44Experiments
  • 15Lessons
  • 22Verified references

The data bundled in this lab is synthetic (fictional titles, ratings from a seeded generator) and small, and the algorithms are genuinely computed in your browser. Results are educational and not comparable with a system on large real data; upload your own data to try them on it.

The labs

Collaborative Filtering Lab

Predict your rating from people who resemble you: user- and item-based kNN, similarity measures, neighbourhood size, sparsity and the long tail.

Experiments
6
Lessons
2
Open the lab

Content-Based Lab

TF-IDF, user profiles, item representations and attribute matching: recommending from the item’s own features.

Experiments
4
Lessons
1
Open the lab

Deep Recommenders Lab

NeuMF, AutoRec, two-tower models and factorization machines, with an honest comparison against simple baselines.

Experiments
5
Lessons
2
Open the lab

Knowledge-Based Lab

Constraints, utility, Pareto fronts, case-based reasoning, critiquing, knowledge graphs, TransE and ontology similarity.

Experiments
7
Lessons
2
Open the lab

Tools and resources

Datasets library

Verified facts about well-known datasets and their licences, ready synthetic samples, and CSV/JSON upload with validation.

Open

Challenges

Checkable problems whose answers are computed by the same engine.

Open

Implemented algorithms

AlgorithmLabRuns inNote
User-based kNNCollaborative Filtering LabBrowserSimilarity-weighted mean of neighbours’ deviations (Pearson/cosine/Jaccard).
Item-based kNNCollaborative Filtering LabBrowserAdjusted cosine between items, as in Sarwar 2001.
Popularity baselineCollaborative Filtering LabBrowserRecommends the most-rated items; surprisingly strong on small data.
TF-IDF content modelContent-Based LabBrowserTF-IDF weights and cosine similarity between user profile and item.
Weighted attribute matchContent-Based LabBrowserMatching categorical and numeric attributes with user-set weights.
Neural collaborative filteringDeep Recommenders LabBrowserGMF + MLP trained with hand-written backpropagation and Adam.
AutoRecDeep Recommenders LabBrowserAutoencoder over rating vectors (Sedhain 2015).
Two-tower modelDeep Recommenders LabBrowserUser and item encoders joined by a dot product.
Factorization machineDeep Recommenders LabBrowserSecond-order interactions through latent factors (Rendle 2010).
Weighted hybridHybrid Recommenders LabBrowserBlend of normalised scores from two components with weight α.
Switching / cascade hybridHybrid Recommenders LabBrowserChooses the component according to how much data the user has.
Constraints and relaxationKnowledge-Based LabBrowserConstraint filtering with minimal-cost relaxation.
Multi-attribute utilityKnowledge-Based LabBrowserWeighted sum and Pareto set.
Case-based reasoning & critiquingKnowledge-Based LabBrowserNearest-case retrieval refined by user critiques.
Personalised PageRank on a KGKnowledge-Based LabBrowserExplanatory paths and meta-path patterns.
TransEKnowledge-Based LabBrowserRelation embeddings with a margin loss (Bordes 2013).
Wu–Palmer similarityKnowledge-Based LabBrowserConcept similarity in a taxonomy.
Truncated SVDMatrix Factorization LabBrowserSingular value decomposition of a mean-imputed matrix.
Matrix factorization (SGD)Matrix Factorization LabBrowserThe μ + b_u + b_i + p·q model with L2 regularisation, as in Koren 2009.
Alternating least squaresMatrix Factorization LabBrowserClosed-form update of each factor matrix in turn.
Implicit-feedback ALSMatrix Factorization LabBrowserConfidence weights c = 1 + αr, as in Hu 2008.
Non-negative MFMatrix Factorization LabBrowserMultiplicative update rules (Lee & Seung 1999).
Markov chainSequential Recommenders LabBrowserItem-to-item transition probabilities with smoothing.
RNN / GRU / LSTMSequential Recommenders LabBrowserReal BPTT training on sessions (idea from Hidasi 2016).
Self-attentionSequential Recommenders LabBrowserA small attention block in the style of SASRec/BERT4Rec.