Practice
1. In the context of monitoring ML models in production, which of the following best describes data drift?
easy
Solution
Step 1: Define data drift
Data drift refers to changes in the statistical properties of input data over time.Step 2: Eliminate wrong options
A sudden drop in model accuracy due to a bug in the code. describes a bug, not data drift. An increase in the model's training time due to larger datasets. is about computational resources, not data properties. A decrease in the model's interpretability over time. is unrelated to data drift.Final Answer:
Option C -> Option CQuick Check:
Data drift = change in data stats [OK]
Hint: Data drift = change in data stats [OK]
Common Mistakes:
2. In the context of data collection for machine learning, which scenario best describes an offline data collection approach?
easy
Solution
Step 1: Identify offline data collection characteristics
Offline data collection involves gathering data that has already been generated and stored, not in real-time.Step 2: Eliminate real-time options
Options A, C, and D involve real-time or near-real-time data collection, which is characteristic of online data collection.Final Answer:
Option D -> Option DQuick Check:
Offline = historical, stored data. [OK]
Hint: Offline = historical, stored data. [OK]
Common Mistakes:
3. In the context of transfer learning, why is it beneficial to pretrain a model on a large dataset before fine-tuning it on a smaller, task-specific dataset?
easy
Solution
Step 1: Understand the purpose of pretraining.
Pretraining allows the model to learn general features from a large dataset.Step 2: Eliminate wrong options.
Pretraining ensures the model learns task-specific features from the start. is incorrect because pretraining focuses on general, not task-specific, features. Pretraining reduces the need for any further training on the task-specific dataset. is incorrect because fine-tuning is still necessary. Pretraining is only useful for models with a large number of parameters. is incorrect because pretraining is beneficial regardless of model size.Final Answer:
Option A -> Option AQuick Check:
Pretrain for general features, fine-tune for specific tasks. [check]
Hint: Pretrain for general features, fine-tune for specific tasks. [check]
Common Mistakes:
4. When choosing between Word2Vec and BERT for a text classification task, which scenario makes Word2Vec a better choice?
medium
Solution
Step 1: Compare Word2Vec and BERT
Word2Vec is less resource-intensive and faster than BERT, which is beneficial when resources are limited.Step 2: Eliminate wrong options
Options A, C, and D require deep contextual understanding, which BERT handles better than Word2Vec.Final Answer:
Option B -> Option BQuick Check:
Word2Vec for speed, BERT for context [OK]
Hint: Word2Vec for speed, BERT for context [OK]
Common Mistakes:
5. When deciding between Few-Shot and Chain-of-Thought prompting, which scenario is best suited for Chain-of-Thought?
medium
Solution
Step 1: Understand Chain-of-Thought
Chain-of-Thought is best for tasks requiring complex reasoning.Step 2: Eliminate wrong options
When the task involves simple factual recall. is incorrect as factual recall doesn't need reasoning. When the model needs to be fine-tuned with a few examples. is about Few-Shot, not Chain-of-Thought. When the task requires generating creative content. is unrelated to reasoning.Final Answer:
Option B -> Option BQuick Check:
Use Chain-of-Thought for complex reasoning tasks. [OK]
Hint: Use Chain-of-Thought for complex reasoning tasks. [OK]
Common Mistakes:
