Relevance in Recommender Systems
A ranking metric can only reward what the labels call relevant. Judged, rated, clicked, and held-out labels measure different things, and a missing label is not a negative label.
A ranking metric can only reward what the labels call relevant. Judged, rated, clicked, and held-out labels measure different things, and a missing label is not a negative label.
Genre overlap is not a single standard metric. It is a set-overlap measure applied to genre tags, and the choice of formula changes the value.
The Jaccard index is the size of the intersection divided by the size of the union. It ignores weights, and two empty sets need an explicit rule.
Cosine compares vector directions. Normalization changes distance rankings, coordinate scaling changes meaning, and retrieval thresholds need evaluation.
ILD is the average distance between the items in one recommendation list. The distance function and the list length decide what the number means.
One model dominates another when it is at least as good on every metric and better on at least one. Most comparisons end with several non-dominated models and a trade-off to decide.
The share of in-scope data assets whose catalog entries carry required metadata, how to choose the denominator, and what a high number cannot show.
User coverage is the share of users who actually receive recommendations. A system that withholds low-confidence recommendations can gain accuracy and lose coverage.
Item coverage counts how much of the catalog the system ever recommends. It grows with the number of users and the list length, and it can be high while a few items dominate.
Understand total versus marginal utility, why concavity produces risk aversion under expected utility, and how diminishing returns differ in machine learning.
DCG adds up the relevance of ranked items but discounts lower positions. Linear and exponential gains give different numbers, so the convention has to travel with the score.
Kaggle hosts machine learning competitions ranked on held-out data. A large study found little evidence of substantial leaderboard overfitting, but a competition score still measures one fixed task.
TREC gives researchers shared documents, questions, and relevance judgments so systems can be compared on one task. Its pooling method decides which documents get judged.
Equal-count bins instead of equal-width ones. What that fixes, what it does not, and why it can report a larger error for the same model.
The largest single deviation between predicted probability and observed frequency. Useful for spotting a dangerous region, fragile as a headline number.
What the curve shows, why it is invariant to prevalence-only shifts and strictly increasing rescaling, and where that invariance becomes a blind spot.
Use reliability, resolution and uncertainty to interpret a Brier score. A small exact example explains the terms and the limits of binned estimates.
A single parameter that softens or sharpens a network’s probabilities without touching which class it picks — and what that single parameter cannot fix.
A two-parameter logistic map from scores to probabilities, fitted on held-out data. An increasing logistic map on one scalar score preserves its ranking; a negative fitted slope can reverse it.
Non-decreasing fitted values can correct monotone probability distortions. Scikit-learn uses linear interpolation between fitted knots, and small calibration samples can overfit.
predict() and predict_proba() >= 0.5 disagreed on 25 of 3,000 training rows, and the model kept 48.2% of them as support vectors.
Probabilities too close to 0.5, intervals wider than the evidence requires. The mirror of overconfidence, and repairable the same way.
Probabilities too close to 0 and 1, intervals too narrow. A monotone sharpening can preserve accuracy at 0.5 and AUC while worsening probability estimates.
95% is a property of the method, not of the interval in front of you. A higher level targets greater coverage across samples and usually widens the interval; it does not assign a posterior probability to the observed interval.
Expected value can inform a one-time decision. Whether the mean is sufficient depends on utility, tail losses, constraints, and who bears the harm.
Neural networks learn parameterized transformations. Layers, nonlinearities, loss, gradients, and optimization play different roles in fitting a useful model.
On events that happen 30% of the time, reporting 0.30 gave the lowest average loss at 0.610682. Reporting 0.20 or 0.40 both cost more.
Twenty-five contaminating values pulled the squared-error fit from 99.73 to 142.60, while absolute error stayed at 100.02 and Huber at 100.21.
Why models work on the log-odds scale, and how an additive constant there corresponds to the same nonlinear correction on the probability scale.
A coefficient of +0.8022 multiplies the odds by 2.2305 everywhere — but raises the probability by 0.0849, 0.1903 or 0.0437 depending where you stand.
One model, one set of probabilities. Moving the cut-off from 0.10 to 0.90 took precision from 0.5271 to 0.9864 and recall from 0.8869 to 0.4306.
Training on the number and cutting afterward matched the classifier’s AUROC of 0.9967 — and also answered the numeric question at R-squared 0.9900.
Odds, log-odds, and why the same coefficient moves a probability by 0.01 in one place and 0.17 in another.
The same logits read [0.9817, 0.0180, 0.0003] at temperature 0.25 and [0.3672, 0.3322, 0.3006] at temperature 10.
At x = 9, a local slope estimate suggests -81.05 for a 0.01 output decrease. The exact input change is about -4.42; the derivative is only local.
Ten maximal sigmoid derivatives multiply to 9.537e-07 and forty to 8.272e-25. These are activation-only factors; the latter is still representable in float32.
Conversions divided by something. Which something decides what the metric means, how it moves, and whether its error bars are honest.
With a fixed competing rank and slot, doubling predicted CTR halves CPC in the simplified auction.
A regression tree whose leaves estimate treatment effects. The criterion that makes the splits, the sample split called honesty, and what it does not fix.
Trees that split on the effect of treating rather than on the outcome, averaged. The criteria that make the splits, and the interpretability it costs.
Cumulative incremental outcome against the share targeted. Why its vertical axis scales a difference of response rates into an incremental response count, and where to cut the campaign.
Likelihood compares parameter values for fixed observations. Ratios, constants, log calculations, and model assumptions determine its interpretation.
Pearson correlation measures linear association only. A coefficient near zero can sit on top of a perfect curved relationship.
Causal inference from observational data needs two things: data and identifiability conditions. Choosing a method does not establish the identification assumptions.
With one contaminating value the largest z-score was 17.8407. With thirty of them it was 4.0420 — they inflate the deviation they are measured against.
Square each error and average. Smooth to optimize and hard on big misses, but in squared units, so it is often reported as RMSE and minimized as MSE.
A regression predicts an outcome; it does not tell you what would happen if you changed an input. Those are different questions with different requirements.
The five binary models gave probabilities summing to 1.0452, 0.9266, 1.0837 and 1.0159 on four test rows. predict_proba divides by the sum.
Accuracy 0.8575 and micro F1 0.8575 — and the rarest class had a recall of 0.0382. Macro F1 came out at 0.6922.
A pAUC that normalizes to 0.5 can be ten times better than chance. Where the baseline actually sits, and how to standardize properly.