Practice
1. For a hate speech detection system, which metric is most appropriate to optimize for minimizing false positives?
easy
Solution
Step 1: Understand metric definitions
Precision measures the ratio of true positives to the sum of true positives and false positives.Step 2: Eliminate wrong options
Accuracy considers all classes, recall focuses on false negatives, and F1-score balances precision and recall.Final Answer:
Option B -> Option BQuick Check:
Minimize false positives = Precision [OK]
Hint: Minimize false positives = Precision [OK]
Common Mistakes:
2. In a recommendation system designed to avoid filter bubbles, what is a likely failure mode if the diversity re-ranking layer is not properly tuned?
medium
Solution
Step 1: Identify the impact of poor tuning
Poor tuning can lead to irrelevant recommendations, reducing user engagement.Step 2: Eliminate wrong options
Increased computational cost (A) and latency (D) are technical issues, not directly related to user engagement. Overfitting (C) is more about personalization than diversity.Final Answer:
Option A -> Option AQuick Check:
Poor tuning reduces engagement due to irrelevant content [OK]
Hint: Poor tuning reduces engagement due to irrelevant content [OK]
Common Mistakes:
3. In a real-time fraud detection system, should you prioritize model complexity or latency, and why?
medium
Solution
Step 1: Consider the system's real-time requirement.
Real-time systems need quick decisions to prevent fraud.Step 2: Evaluate the trade-off between complexity and latency.
Latency is prioritized to ensure timely fraud detection.Final Answer:
Option B -> Option BQuick Check:
Real-time needs instant decisions. [OK]
Hint: Real-time needs instant decisions. [OK]
Common Mistakes:
4. In an ML monitoring platform, what is a likely failure mode if the alerting system is not properly calibrated?
medium
Solution
Step 1: Understand the role of alerting calibration
Proper calibration ensures alerts are meaningful and not overly sensitive.Step 2: Identify the failure mode
If not calibrated, the alerting system may trigger retraining too often, leading to unnecessary computational costs.Final Answer:
Option A -> Option AQuick Check:
Over-alerting = Frequent retraining [OK]
Hint: Over-alerting = Frequent retraining [OK]
Common Mistakes:
5. A search ranking system suddenly shows irrelevant results at the top. What is the most likely failure mode?
medium
Solution
Step 1: Analyze the symptom
Irrelevant results suggest a mismatch in understanding query-document relevance.Step 2: Identify the most likely cause
Feature mismatch can lead to poor relevance scoring.Final Answer:
Option A -> Option AQuick Check:
Feature mismatch leads to poor relevance. [OK]
Hint: Feature mismatch leads to poor relevance. [OK]
Common Mistakes:
