Offline Metrics for People You May Know Recommendations

Last updated: November 29, 2026

Quick Overview

You trained a new People You May Know model that predicts invitation acceptance. Choose the offline evaluation metrics and protocol you would use before an online test, and explain why AUC alone is not enough.

LinkedIn
Machine Learning
Machine Learning Engineer
LinkedIn
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

0

0 solved


You trained a new People You May Know model that predicts invitation acceptance. Choose the offline evaluation metrics and protocol you would use before an online test, and explain why AUC alone is not enough.

PYMK is one of LinkedIn's most important growth models, and its value depends on both members accepting invites and the network becoming more useful. Interviewers check that you match offline metrics to how recommendations are shown (a ranked list per member) and handle evaluation leakage in time.

What the Interviewer Expects
  • Defines the label and the prediction moment clearly
  • Uses per-member ranking metrics such as recall@k and NDCG@k
  • Explains limitations of global AUC
  • Uses a time-based split to avoid leakage
  • Slices metrics by member segment such as new members
  • Connects offline metrics to expected online outcomes
Key Topics to Cover
ranking metrics
NDCG
recall at k
temporal validation
PYMK
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you evaluate candidates the old model never showed, which have no labels?
  • What metric would capture the long-term value of a connection?
  • Offline NDCG improves but online acceptances do not. Why?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Label: an impression of candidate jj to member ii that leads to an accepted invitation within 14 days. The model ranks candidates per member, and members see the top few on the My Network page. So t...

Approach

Use per-member ranking metrics on a time-based holdout, plus calibration and segment slices, then compare to the production model on identical candidate sets....


Submit Your Answer
Markdown supported