Glossary and FAQ
Recommender-systems terms with short definitions, the core formulas, and answers to the questions that come up most. Search them directly.
- 37Terms
- 12Formulas
- 10FAQ
Glossary
Alternating least squares
Fixing one factor matrix and solving the other in closed form, alternating until convergence.
Attention
A mechanism that weights different history items by their relevance to the current prediction.
Backpropagation through time
Computing gradients in a recurrent network by unrolling it over time steps.
Cold start
Lack of data about a new user or a new item, which makes collaborative methods fail.
Constraint-based recommendation
Filtering items by explicit requirements (max price, weight…) and proposing relaxations when nothing fits.
Cosine similarity
Cosine of the angle between two vectors; it does not remove the mean, so it is affected by a user’s tendency to rate high.
Coverage
The share of the catalogue that actually appears in any user’s recommendations.
Critiquing
The user says “cheaper” or “lighter” and search restarts from the current item.
Data leakage
Information from the test set or the future reaching training, which inflates results.
Embedding
A dense vector representing a user or item, learned from data.
Explicit feedback
A rating the user gives deliberately (stars, like/dislike).
Hybrid recommender
A system combining more than one technique; Burke 2002 classified seven ways to combine them.
Implicit feedback
Behaviour from which interest is inferred (click, purchase, watch time); it does not tell us what the user dislikes.
Knowledge graph
A graph of (head, relation, tail) triples linking items to their attributes and entities.
Latent factor
An unlabelled dimension learned by the model that describes user taste and item traits at once.
Long tail
A distribution where few items are very popular and many are rarely rated.
Markov chain
A model in which the next item’s probability depends only on the current one.
nDCG
Position-discounted cumulative gain divided by the best possible ordering; rewards placing relevant items early.
Negative sampling
Picking items the user did not interact with as negatives when training on implicit feedback.
Neighbourhood
The k most similar users (or items) used for a prediction.
Over-specialisation
The tendency of content-based recommendation to suggest items very similar to what the user already saw.
Pareto front
Items that no other item beats on every attribute at once.
Pearson correlation
Correlation of ratings after subtracting each user’s mean, over co-rated items.
Popularity bias
A system’s tendency to recommend popular items more than their real share.
Precision@K
The share of relevant items among the first K recommendations.
Recall@K
The share of all relevant items that appear in the first K.
Recommender system
A system that ranks items (films, books, products…) for a particular user by how useful or appealing they are expected to be.
Regularisation
A penalty term (such as λ‖p‖²) that keeps a model from memorising the training data.
Sampled metrics
Ranking evaluation against a sample of items rather than all; Krichene & Rendle 2020 showed it can change the ordering of models.
Session
A short, temporally contiguous sequence of one user’s interactions.
Stochastic gradient descent
Updating parameters after each example (or mini-batch) against the gradient.
Sparsity
The share of empty cells in the user–item matrix; it weakens similarities computed on few co-rated items.
TF-IDF
A term weight that grows with its frequency in the document and shrinks with its frequency across all documents.
TransE
An embedding that makes h + r ≈ t for true triples using a margin loss.
Two-tower model
One encoder for users and one for items that meet in a dot product; suited to fast retrieval.
User–item matrix
A table whose rows are users, columns are items and cells are ratings; most cells are empty.
User profile
A vector summarising the features of items the user liked.
Formulas
ALS update
p_u=(Q_u^{\top}Q_u+\lambda I)^{-1}Q_u^{\top}r_uRidge least-squares solution for a user factor.
Scaled dot-product attention
\mathrm{Attn}(Q,K,V)=\mathrm{softmax}\!\Big(\frac{QK^{\top}}{\sqrt{d}}\Big)VSoftmax weights over the keys.
Cosine similarity
s(a,b)=\frac{a\cdot b}{\lVert a\rVert\,\lVert b\rVert}Dot product divided by the product of the norms.
Weighted hybrid
\hat s=\alpha\,\hat s_{cf}+(1-\alpha)\,\hat s_{cb}Linear blend of two normalised scores.
Biased MF objective
\min\sum_{(u,i)}(r_{ui}-\mu-b_u-b_i-p_u^{\top}q_i)^2+\lambda(\lVert p_u\rVert^2+\lVert q_i\rVert^2+b_u^2+b_i^2)Squared error with L2 regularisation.
NeuMF output
\hat y_{ui}=\sigma\big(h^{\top}[\,p^{G}_u\odot q^{G}_i\;;\;\mathrm{MLP}([p^{M}_u;q^{M}_i])\,]\big)GMF and MLP paths joined by an output layer.
nDCG@K
\mathrm{DCG}@K=\sum_{i=1}^{K}\frac{2^{rel_i}-1}{\log_2(i+1)},\quad \mathrm{nDCG}@K=\frac{\mathrm{DCG}@K}{\mathrm{IDCG}@K}Gain discounted by the log of the position divided by the ideal.
Precision and recall at K
P@K=\frac{|\mathrm{rel}\cap \mathrm{top}_K|}{K},\quad R@K=\frac{|\mathrm{rel}\cap \mathrm{top}_K|}{|\mathrm{rel}|}Relevant in the list relative to K and to all relevant items.
User-kNN prediction
\hat r_{ui}=\bar r_u+\frac{\sum_{v}s(u,v)(r_{vi}-\bar r_v)}{\sum_{v}|s(u,v)|}The user’s mean plus the similarity-weighted deviations of neighbours.
TF-IDF weight
w_{t,d}=\mathrm{tf}_{t,d}\cdot\log\frac{N}{\mathrm{df}_t}Term frequency × log inverse document frequency.
TransE loss
\mathcal L=\sum\big[\gamma+d(h+r,t)-d(h^{\prime}+r,t^{\prime})\big]_+Margin loss between a true and a corrupted triple.
Wu–Palmer similarity
\mathrm{sim}(c_1,c_2)=\frac{2\,\mathrm{depth}(\mathrm{lcs})}{\mathrm{depth}(c_1)+\mathrm{depth}(c_2)}Depth of the least common subsumer relative to the two concepts’ depths.
Frequently asked questions
How do I handle cold start?
For a new item use its features (content); for a new user start with popularity or preference questions, then move to collaborative methods once enough ratings exist; try the “user cold start” and “item cold start” experiments.
What is the most dangerous kind of leakage?
A random split of temporal or session data: it uses the future to predict the past. Use a temporal or leave-last-out split and record the protocol signature.
Is the assistant a language model?
The default is static local knowledge with no outside call. An administrator may enable an optional provider with a server-side key; no algorithm in the lab depends on an external API.
Which metric should I use?
Match the metric to the product: a ranked list calls for ranking metrics (nDCG, Recall@K); a rating prediction calls for RMSE/MAE. A low RMSE does not guarantee good ranking; see the “rating vs ranking” experiment.
Can I use these algorithms in production?
They are for learning and experimenting on small data. For production use dedicated libraries/platforms, real data and a controlled evaluation.
Is the training here real?
Yes: the models genuinely train in your browser with hand-written backpropagation, but on small synthetic data for few epochs; do not compare the numbers with production-scale results.
Is one point of advantage enough?
No. A single split establishes nothing statistically; repeat over seeds and splits and compute a confidence interval, as in the significance experiment.
Why is the data synthetic?
Because the licences of most real datasets forbid redistribution or could not be verified. We therefore bundle generated samples with fictional titles and let you upload your own data.
Are my uploaded files sent to the server?
No. Reading CSV/JSON, mapping and running algorithms all happen in your browser; no file is stored on the server.
Which algorithm should I choose?
Start with the popularity baseline and kNN, then compare more complex models under the same protocol. Dacrema et al. 2019 found several neural models did not beat well-tuned simple methods. The “honest comparison” experiment shows this on synthetic data, which is not general proof.
No matching entries. Try another word.
