[son of anton]
Recommendation & search

Click-through prediction

ad ranking, sponsored listings, notification targeting

Estimate the probability of a click or conversion per impression, and rank by expected value.

Odds & log-odds
Maximum likelihood
Probability & Bayes
Foundations
Calibration is a statement about probabilities; log loss is the likelihood you are maximising.
Frame the problem
Frame
The output feeds an auction, so it must be a calibrated probability, not just a ranking. Define the attribution window for conversions.
Sourcing & signal
Exploring the data
Hunting for leakage
Data & labels
Position bias, and delayed feedback: conversions arrive days later. Decide how to label impressions whose window has not closed.
Encode & scale
Embedding layers
Create features
Represent
Very high-cardinality ids: hashing and embeddings, not one-hot. Crosses between user, ad, and context carry the signal.
Temporal splits & backtesting
Split
Strictly temporal. Yesterday predicts today.
Dumb baseline
Logistic regression
Gradient boosting
Factorization machines
Deep rankers
Multi-objective
Click, conversion, and quality as shared-bottom or MMoE heads when one model must serve several objectives.
Deep rankers
Model
Logistic regression with feature crosses was the industry standard for a decade and is still hard to beat per unit of compute. Gradient boosting for tens of millions of rows. Factorization machines and deep rankers when crosses become unmanageable by hand.
Loss functions
Calibration
Online learning
Train
Log loss, not AUC, is the objective. Recalibrate after any downsampling of negatives. Online updates for fast-moving inventory.
Classification metrics
Ranking & recsys metrics
Offline / online gap
Evaluate offline
Log loss and calibration curves per slice. AUC for ranking quality. Normalised entropy against a predict-the-average baseline.
A/B testing & interleaving
Off-policy evaluation
Evaluate online
Revenue and calibration in the experiment. Off-policy evaluation from logged auctions.
Serving & release
Inference optimisation
Monitor & retrain
Ship & monitor
Millisecond latency. Watch calibration drift daily; a miscalibrated model overbids.
Mini Map