Practice
1. For a semantic search system using a Bi-Encoder, which metric is most appropriate to evaluate the retrieval performance?
easy
Solution
Step 1: Understand retrieval evaluation metrics
Precision@K measures the relevance of the top K retrieved documents, which is crucial for retrieval tasks.Step 2: Eliminate wrong options
Accuracy and F1 Score are more suited for classification tasks, Mean Squared Error is for regression.Final Answer:
Option B -> Option BQuick Check:
Precision@K = retrieval relevance [check]
Hint: Precision@K = retrieval relevance [check]
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 an ML platform, when should you prefer batch processing over real-time processing for feature computation?
medium
Solution
Step 1: Analyze the constraints.
Batch processing is suitable when resources are limited and latency is not a priority.Step 2: Eliminate wrong options.
Options A, B, and D require real-time processing due to their need for immediacy.Final Answer:
Option A -> Option AQuick Check:
Batch for non-critical latency. [OK]
Hint: Batch processing suits non-critical latency scenarios. [OK]
Common Mistakes:
4. What is a likely failure mode if a spam detection system is not robust to adversarial attacks?
medium
Solution
Step 1: Understand adversarial attack impacts
Adversarial attacks often aim to bypass detection, leading to false negatives.Step 2: Eliminate unrelated failure modes
False positives (B) are less likely from adversarial attacks. Overfitting (C) and underfitting (D) are unrelated to adversarial robustness.Final Answer:
Option D -> Option DQuick Check:
Adversarial attacks increase false negatives. [OK]
Hint: Adversarial attacks increase false negatives. [OK]
Common Mistakes:
5. When choosing between FAISS and HNSW for a vector search task, which is more suitable for handling dynamic datasets with frequent updates?
medium
Solution
Step 1: Evaluate update capabilities.
HNSW supports dynamic updates efficiently.Step 2: Eliminate wrong options.
FAISS is not optimized for frequent updates; indexing speed and precision are not the primary concerns here.Final Answer:
Option D -> Option DQuick Check:
HNSW handles dynamic updates well. [OK]
Hint: HNSW handles dynamic updates well. [OK]
Common Mistakes:
