Practice
1. For an entity extraction system, which metric is most appropriate to evaluate the system's performance?
easy
Solution
Step 1: Understand the importance of balancing precision and recall.
Entity extraction requires a balance between precision and recall to ensure both correctness and completeness.Step 2: Evaluate each metric.
Accuracy: Accuracy can be misleading in imbalanced datasets. Precision: Precision alone ignores recall. Mean Squared Error: Mean Squared Error is irrelevant for classification tasks. F1 Score: F1 Score balances precision and recall, making it suitable for entity extraction.Final Answer:
Option D -> Option DQuick Check:
F1 Score balances precision and recall. [OK]
Hint: F1 Score balances precision and recall. [OK]
Common Mistakes:
2. For a visual search system, which metric is most appropriate to evaluate the quality of the image embeddings?
easy
Solution
Step 1: Understand the evaluation context
Precision at K measures how many of the top K retrieved items are relevant, which is crucial for search systems.Step 2: Eliminate wrong options
Mean Squared Error is for regression, Accuracy and F1 Score are for classification, not retrieval quality.Final Answer:
Option D -> Option DQuick Check:
Search quality = Precision at K. [OK]
Hint: Search quality = Precision at K. [OK]
Common Mistakes:
3. In designing an agent system for dynamic environments, should you prioritize a reactive or deliberative planning approach?
medium
Solution
Step 1: Analyze environment characteristics
Dynamic environments require quick adaptation to changes.Step 2: Match approach to environment
Reactive planning is suited for quick responses, while deliberative planning is slower and more resource-intensive.Final Answer:
Option D -> Option DQuick Check:
Dynamic = Reactive for speed [OK]
Hint: Dynamic environments need reactive planning for speed. [OK]
Common Mistakes:
4. In a spam detection system, when should you prefer a decision tree over a neural network?
medium
Solution
Step 1: Consider the need for model interpretability
Decision trees are preferred when interpretability is crucial due to their clear decision paths.Step 2: Eliminate options based on constraints
Neural networks (A, C, D) are better for large, unstructured data and when resources are abundant.Final Answer:
Option A -> Option AQuick Check:
Use trees for interpretability. [OK]
Hint: Use trees for interpretability. [OK]
Common Mistakes:
5. In a visual search system, what is a likely failure mode if the image embedding model is not properly trained?
medium
Solution
Step 1: Identify the impact of poor embeddings
Poorly trained embeddings lead to inaccurate retrieval because the vector representations don't capture image semantics well.Step 2: Eliminate wrong options
Latency, storage, and downtime are not directly affected by embedding quality.Final Answer:
Option B -> Option BQuick Check:
Poor embeddings = poor retrieval. [OK]
Hint: Poor embeddings = poor retrieval. [OK]
Common Mistakes:
