Practice
1. For a content-based recommendation system, which metric is most appropriate to evaluate the quality of item embeddings?
easy
Solution
Step 1: Understand the evaluation context
Item embeddings are evaluated based on how well they capture similarities, which is best measured by cosine similarity.Step 2: Eliminate wrong options
A & B: Precision and Recall are more suited for classification tasks. D: MAE is used for regression, not similarity.Final Answer:
Option A -> Option AQuick Check:
Cosine similarity measures embedding quality. [OK]
Hint: Cosine similarity measures embedding quality. [OK]
Common Mistakes:
2. For a vector search system using HNSW, which metric should be optimized to ensure fast retrieval times?
easy
Solution
Step 1: Understand the goal of fast retrieval.
Latency measures the time taken for retrieval, crucial for speed.Step 2: Eliminate wrong options.
Precision, recall, and F1 score relate to accuracy, not speed.Final Answer:
Option B -> Option BQuick Check:
Optimize latency for fast retrieval. [OK]
Hint: Optimize latency for fast retrieval. [OK]
Common Mistakes:
3. In a hate speech detection system, should you prioritize using a deep learning model over a simpler model like logistic regression when computational resources are limited?
medium
Solution
Step 1: Evaluate resource constraints
When computational resources are limited, simpler models like logistic regression are more efficient and interpretable.Step 2: Eliminate wrong options
Deep learning models may perform better but require more resources, and simpler models can handle large datasets with proper techniques.Final Answer:
Option C -> Option CQuick Check:
Limited resources = Simpler models [OK]
Hint: Limited resources = Simpler models [OK]
Common Mistakes:
4. In an ML platform, what is a likely failure mode if the feature store is not properly versioned?
medium
Solution
Step 1: Identify the impact of unversioned features.
Without versioning, features may change unexpectedly, leading to inconsistent predictions.Step 2: Eliminate wrong options.
Options A, C, and D are not directly affected by feature versioning.Final Answer:
Option B -> Option BQuick Check:
Versioning prevents prediction inconsistency. [OK]
Hint: Versioning prevents prediction inconsistency. [OK]
Common Mistakes:
5. As the scale of users increases tenfold, which component of a bot detection system using behavioral signals is most likely to fail first?
hard
Solution
Step 1: Consider the impact of scale on system components.
Real-time processing is critical for immediate detection and is resource-intensive.Step 2: Eliminate wrong options.
Data storage can be scaled with cloud solutions; model training is periodic; UI is less critical to detection.Final Answer:
Option A -> Option AQuick Check:
Real-time processing is resource-intensive at scale [OK]
Hint: Real-time processing is resource-intensive at scale [OK]
Common Mistakes:
