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. In the context of Few-Shot prompting, which of the following best describes its primary purpose?
easy
Solution
Step 1: Understand Few-Shot Prompting
Few-Shot prompting involves providing a model with a few examples to guide its responses.Step 2: Eliminate wrong options
To train a model from scratch with minimal data. is incorrect as Few-Shot does not train from scratch. To fine-tune a pre-trained model with a large dataset. is about fine-tuning, not Few-Shot. To ensure a model generates deterministic outputs. is unrelated to Few-Shot's purpose.Final Answer:
Option A -> Option AQuick Check:
Few examples guide responses in Few-Shot. [OK]
Hint: Few examples guide responses in Few-Shot. [OK]
Common Mistakes:
3. In the context of fairness in machine learning, which of the following techniques is specifically designed to ensure that a model's predictions are equally accurate across different demographic groups?
easy
Solution
Step 1: Identify the technique focused on fairness.
Adversarial debiasing is specifically designed to reduce bias by ensuring equal accuracy across groups.Step 2: Eliminate wrong options.
Data augmentation (A) is for increasing data diversity, cross-validation (C) is for model validation, and gradient boosting (D) is for improving model accuracy, not fairness.Final Answer:
Option B -> Option BQuick Check:
Adversarial debiasing ensures fairness across groups. [OK]
Hint: Adversarial debiasing ensures fairness across groups. [OK]
Common Mistakes:
4. A decision tree model is overfitting the training data. What is the most likely cause?
medium
Solution
Step 1: Identify overfitting causes.
Overfitting often occurs when the model is too complex, such as a deep tree.Step 2: Eliminate wrong options.
A shallow tree would underfit, a small dataset affects generalization but not directly overfitting, and uninformative features would lead to poor performance, not overfitting.Final Answer:
Option D -> Option DQuick Check:
Deep trees overfit easily. [OK]
Hint: Deep trees overfit easily. [OK]
Common Mistakes:
5. You need to track the lineage of a model from data ingestion to deployment using MLflow. Which approach best achieves this?
hard
Solution
Step 1: Understand MLflow's capabilities
MLflow alone does not track data lineage; integration is needed.Step 2: Evaluate options for lineage tracking
Integrating with a dedicated lineage tool provides comprehensive tracking.Final Answer:
Option B -> Option BQuick Check:
Lineage needs integration [OK]
Hint: Lineage needs integration [OK]
Common Mistakes:
