Practice
1. In the context of continual learning, which of the following is a primary advantage over periodic retraining?
easy
Solution
Step 1: Identify the key advantage of continual learning.
Continual learning allows models to adapt immediately to new data without waiting for a retraining cycle.Step 2: Eliminate wrong options.
Reduced risk of catastrophic forgetting is incorrect because continual learning can increase the risk of catastrophic forgetting. Lower computational cost over time is incorrect because continual learning can be computationally expensive due to constant updates. Better performance on static datasets is incorrect because continual learning is not specifically better for static datasets.Final Answer:
Option D -> Option DQuick Check:
Continual learning adapts immediately. [OK]
Hint: Continual learning adapts immediately. [OK]
Common Mistakes:
2. A KNN model is performing poorly on a high-dimensional dataset. What is the most likely cause?
medium
Solution
Step 1: Consider high-dimensional effects
In high dimensions, distance metrics often become less effective.Step 2: Eliminate wrong options
The model has too few neighbors. is incorrect as increasing neighbors may not help. The dataset is too small. is wrong because size isn't the main issue. The model is overfitting due to too many neighbors. is incorrect as overfitting is less likely with many neighbors.Final Answer:
Option B -> Option BQuick Check:
High dimensions dilute distance metrics. [OK]
Hint: High dimensions dilute distance metrics. [OK]
Common Mistakes:
3. When should you avoid using Naive Bayes despite its simplicity and speed?
medium
Solution
Step 1: Identify Naive Bayes Limitations
Naive Bayes assumes feature independence given the class label.Step 2: Evaluate Each Option
When the dataset is very large. is incorrect because Naive Bayes handles large datasets well. When you need a probabilistic output. is incorrect because Naive Bayes provides probabilistic outputs. When the dataset has missing values. is incorrect because Naive Bayes can handle missing values with some preprocessing.Final Answer:
Option D -> Option DQuick Check:
Correlated features break Naive Bayes. [[check]]
Hint: Correlated features break Naive Bayes. [[check]]
Common Mistakes:
4. A language model using SentencePiece is producing unexpected token sequences. What is a likely cause?
medium
Solution
Step 1: Identify potential issues with SentencePiece training.
Improper normalization can lead to unexpected token sequences.Step 2: Eliminate wrong options.
Large vocabulary (A) and diverse data (C) are less likely to cause unexpected sequences; fixed vocabulary (D) is unrelated to sequence issues.Final Answer:
Option A -> Option AQuick Check:
Normalization issues cause token surprises. [OK]
Hint: Normalization issues cause token surprises. [OK]
Common Mistakes:
5. How would you adapt Naive Bayes for a text classification task where word order matters?
hard
Solution
Step 1: Understand the Task Requirements
Word order matters, so capturing sequences is important.Step 2: Evaluate Adaptation Options
Use a bag-of-words model. ignores word order. Use a single Gaussian distribution for all features. is irrelevant to text data. Apply PCA to reduce dimensionality. reduces dimensionality but doesn't capture order. Incorporate n-grams into the feature set. captures sequences with n-grams.Final Answer:
Option C -> Option CQuick Check:
Use n-grams for word order in text. [[check]]
Hint: Use n-grams for word order in text. [[check]]
Common Mistakes:
