Practice
1. In the context of evaluating a recommendation system, which of the following best describes why offline evaluation metrics might disagree with online performance?
easy
Solution
Step 1: Understand the difference between offline and online evaluation.
Offline evaluation uses historical data and predefined metrics, while online evaluation captures real-time user interactions.Step 2: Eliminate wrong options.
Offline metrics are always more accurate than online metrics. is incorrect because offline metrics are not inherently more accurate. Online metrics are biased due to data leakage. is incorrect because online metrics are not biased due to data leakage; they reflect real-world interactions. Offline metrics are influenced by server latency. is incorrect because server latency affects online performance, not offline metrics.Final Answer:
Option D -> Option DQuick Check:
Offline misses real user dynamics. [OK]
Hint: Offline misses real user dynamics. [OK]
Common Mistakes:
2. Given the following Python code snippet using a Chain-of-Thought prompt, what will be the output?
prompt = "Solve: 2 + 2 = ?\nLet's think step by step.\nFirst, we add 2 and 2.\nThe result is:"What will the model likely output?easy
Solution
Step 1: Analyze the prompt
The prompt guides the model to solve the equation step-by-step, leading to the answer.Step 2: Eliminate wrong options
An error due to incomplete prompt. is incorrect as the prompt is complete. The model will output a step-by-step explanation. is incorrect because the prompt already provides steps. The model will output random numbers. is incorrect as the prompt is specific.Final Answer:
Option D -> Option DQuick Check:
Prompt guides to solve 2+2, answer is 4. [OK]
Hint: Prompt guides to solve 2+2, answer is 4. [OK]
Common Mistakes:
3. A model registered in MLflow Registry is not showing the expected performance in production. What is the most likely cause?
medium
Solution
Step 1: Analyze potential causes of performance issues
Data discrepancies are a common cause of unexpected model performance.Step 2: Eliminate less likely causes
Incorrect dataset usage is more likely than versioning or packaging issues.Final Answer:
Option D -> Option DQuick Check:
Check dataset consistency [OK]
Hint: Check dataset consistency [OK]
Common Mistakes:
4. A linear regression model trained using gradient descent is not converging. What is the most likely cause?
medium
Solution
Step 1: Identify common convergence issues
A high learning rate can cause the model to overshoot the minimum, preventing convergence.Step 2: Eliminate wrong options
A small dataset (B) or too many features (C) might affect performance but not convergence. Initial weights being zero (D) is not a convergence issue.Final Answer:
Option B -> Option BQuick Check:
High learning rate can prevent convergence. [OK]
Hint: High learning rate can prevent convergence. [OK]
Common Mistakes:
5. When deploying a model to production, which trade-off is most critical to consider?
medium
Solution
Step 1: Identify the key trade-off in production.
In production, inference latency is crucial as it affects user experience.Step 2: Eliminate less relevant trade-offs.
Model accuracy vs. training time is more relevant during development, not deployment. Data size vs. interpretability and feature engineering vs. hyperparameter tuning are less critical in production.Final Answer:
Option B -> Option BQuick Check:
Latency impacts user experience in production. [OK]
Hint: Latency impacts user experience in production. [OK]
Common Mistakes:
