Practice
1. For a fraud detection system, which metric is most appropriate to optimize for minimizing false positives?
easy
Solution
Step 1: Understand the impact of false positives.
Minimizing false positives means correctly identifying non-fraudulent transactions.Step 2: Choose the metric that reflects this goal.
Precision is the metric that focuses on reducing false positives.Final Answer:
Option C -> Option CQuick Check:
Precision reduces false positives. [OK]
Hint: Precision reduces false positives. [OK]
Common Mistakes:
2. In a neural collaborative filtering system, what is a likely failure mode if the model is not performing well on new users?
medium
Solution
Step 1: Identify the issue with new users.
New users often lack interaction data, leading to the cold start problem.Step 2: Eliminate wrong options.
Options A and D relate to model complexity, not new user performance. Data leakage from training to validation sets. is about data leakage, not specific to new users.Final Answer:
Option C -> Option CQuick Check:
New users = cold start issue [OK]
Hint: New users = cold start issue [OK]
Common Mistakes:
3. In a two-stage retrieval system, when should you prioritize a simpler candidate generation model over a complex one?
medium
Solution
Step 1: Consider resource allocation
If the ranking stage is computationally expensive, a simpler candidate generation model can save resources for the ranking stage.Step 2: Eliminate wrong options
When the dataset is small and computation resources are abundant. is incorrect because a small dataset doesn't necessitate a simpler model. When precision is more important than recall in the candidate generation stage. is incorrect because recall is typically prioritized in candidate generation. When the ranking model is not capable of handling large candidate sets. is incorrect because the ranking model should handle the candidate set size.Final Answer:
Option A -> Option AQuick Check:
Save resources for ranking if it's costly. [OK]
Hint: Save resources for ranking if it's costly. [OK]
Common Mistakes:
4. As a content-based filtering system scales to 10x more items, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Analyze scaling impact
Scaling to more items increases the demand for computing and updating item embeddings, making it a potential bottleneck.Step 2: Eliminate wrong options
A: User profile storage scales with users, not items. C: Recommendation generation is more affected by user scale. D: Interaction logging is more about user activity than item count.Final Answer:
Option A -> Option AQuick Check:
More items strain embedding computation. [OK]
Hint: More items strain embedding computation. [OK]
Common Mistakes:
5. As the volume of emails increases 10x, which component of a spam detection system is most likely to fail first?
hard
Solution
Step 1: Consider scalability of components
Real-time inference engines often struggle with increased load due to latency constraints.Step 2: Eliminate components less affected by scale
Feature extraction (A) and data storage (D) can be scaled horizontally. Model training (B) is not real-time.Final Answer:
Option C -> Option CQuick Check:
Inference engines struggle with scale. [OK]
Hint: Inference engines struggle with scale. [OK]
Common Mistakes:
