Practice
1. For a session-based recommendation system, which metric is most appropriate to evaluate the model's ability to predict the next item in a sequence?
easy
Solution
Step 1: Identify metrics for ranking tasks
Precision@K is used to evaluate the relevance of the top-K recommended items.Step 2: Eliminate metrics for regression/classification
MAE and RMSE are for regression; F1 Score is for classification.Final Answer:
Option A -> Option AQuick Check:
Precision@K for ranking relevance. [OK]
Hint: Precision@K for ranking relevance. [OK]
Common Mistakes:
2. A delivery forecasting model is consistently overestimating ETAs during peak traffic hours. What is the most likely failure mode?
medium
Solution
Step 1: Identify the cause of overestimation during peak hours
Real-time traffic data is crucial for accurate ETA predictions.Step 2: Eliminate wrong options
Underfitting (A) and overfitting (D) are general issues, not specific to peak hours. Too many parameters (C) would cause overfitting, not specific time errors.Final Answer:
Option A -> Option AQuick Check:
Real-time data is key for peak accuracy. [OK]
Hint: Real-time data is key for peak accuracy. [OK]
Common Mistakes:
3. In a pairwise learning to rank system, what is a common failure mode if the model is not performing well?
medium
Solution
Step 1: Identify the failure mode specific to pairwise ranking.
Pairwise models can fail if they don't capture the relative order of item pairs.Step 2: Eliminate wrong options.
Overfitting and inappropriate loss functions are generic issues, and pairwise doesn't consider the entire list, making C incorrect.Final Answer:
Option B -> Option BQuick Check:
Pairwise = focus on item pairs [OK]
Hint: Pairwise = focus on item pairs [OK]
Common Mistakes:
4. A session-based recommendation model is underperforming. Which of the following is a likely failure mode specific to sequential modeling?
medium
Solution
Step 1: Identify sequential modeling issues
Ignoring the order of interactions can lead to poor performance in sequential models.Step 2: Eliminate generic issues
Overfitting and data leakage are general issues; learning rate affects convergence speed, not sequence handling.Final Answer:
Option A -> Option AQuick Check:
Order matters in sequences. [OK]
Hint: Order matters in sequences. [OK]
Common Mistakes:
5. In a visual search system, when should you prefer using an Approximate Nearest Neighbor (ANN) index over an exact search method?
medium
Solution
Step 1: Consider the trade-offs
ANN is preferred when low latency is crucial because it speeds up search at the cost of some accuracy.Step 2: Eliminate wrong options
Exact matches require exact search, small datasets don't benefit much from ANN, and one-dimensional search doesn't need ANN complexity.Final Answer:
Option A -> Option AQuick Check:
ANN for speed, not exactness. [OK]
Hint: ANN for speed, not exactness. [OK]
Common Mistakes:
