Practice
1. For an agent system designed to optimize task completion time, which metric should be prioritized?
easy
Solution
Step 1: Understand the objective
The goal is to optimize task completion time, which relates to how quickly tasks are executed.Step 2: Match metrics to objectives
Latency measures the time delay in task execution, making it the relevant metric.Final Answer:
Option A -> Option AQuick Check:
Task time = Latency focus [OK]
Hint: Task time optimization = focus on latency. [OK]
Common Mistakes:
2. 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:
3. When choosing between pairwise and listwise approaches for a ranking task, which scenario favors the listwise approach?
medium
Solution
Step 1: Identify the scenario where listwise is beneficial.
Listwise approaches are best when optimizing the entire list's order is crucial.Step 2: Eliminate wrong options.
Pairwise is better for individual relevance, and listwise can be resource-intensive, making A and B incorrect.Final Answer:
Option A -> Option AQuick Check:
Listwise = full list optimization [OK]
Hint: Listwise = full list optimization [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. As the user base of an ML platform grows 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling on each component.
Serving Infrastructure is directly impacted by increased user requests, making it a likely bottleneck.Step 2: Eliminate wrong options.
Model Training and Data Ingestion are less affected by user growth, and Feature Store scales with data, not users.Final Answer:
Option C -> Option CQuick Check:
Serving scales with user requests. [OK]
Hint: Serving scales with user requests. [OK]
Common Mistakes:
