Practice
1. For a system with highly volatile data, which approach is more suitable and why?
medium
Solution
Step 1: Consider the nature of volatile data.
Volatile data can introduce noise, which continual learning might overfit to.Step 2: Evaluate the options.
Continual learning, because it adapts quickly to changes. is incorrect because continual learning can overfit to noise. Continual learning, because it is computationally cheaper. is incorrect because continual learning is not necessarily cheaper. Periodic retraining, because it ensures model stability. is incorrect because while periodic retraining ensures stability, it is not the primary reason for its suitability here.Final Answer:
Option B -> Option BQuick Check:
Volatile data needs stability. [OK]
Hint: Volatile data needs stability. [OK]
Common Mistakes:
2. A model trained on a dataset is performing exceptionally well on the test set but poorly on new unseen data. What is the most likely cause?
medium
Solution
Step 1: Analyze the symptoms
High test performance but poor real-world performance suggests leakage.Step 2: Eliminate other causes
The model is overfitting due to too many parameters. would affect both test and real-world data, The model has not been trained for enough epochs. would not cause high test performance, The feature scaling was not applied correctly. would affect all data equally.Final Answer:
Option B -> Option BQuick Check:
High test, low real-world = leakage [OK]
Hint: High test, low real-world = leakage [OK]
Common Mistakes:
3. A model using attention mechanisms is not providing expected interpretability insights. What is a likely cause?
medium
Solution
Step 1: Identify the role of attention.
Attention mechanisms provide insights through attention weights.Step 2: Diagnose the issue.
If insights are missing, it may be due to incorrect visualization of attention weights.Final Answer:
Option B -> Option BQuick Check:
Check attention weight visualization for insights. [OK]
Hint: Check attention weight visualization for insights. [OK]
Common Mistakes:
4. When choosing between BPE and WordPiece for a language model, which scenario makes WordPiece a better choice?
medium
Solution
Step 1: Identify the strengths of WordPiece.
WordPiece is designed to handle rare words efficiently by breaking them into subwords.Step 2: Eliminate wrong options.
Minimizing vocabulary size (A) and handling inflection (B) are not specific strengths of WordPiece; text generation (D) is not a specific advantage.Final Answer:
Option C -> Option CQuick Check:
WordPiece excels with rare words. [OK]
Hint: WordPiece excels with rare words. [OK]
Common Mistakes:
5. How would you adapt a decision tree to handle a dataset with a large number of categorical features?
hard
Solution
Step 1: Identify the best adaptation method.
Some decision tree algorithms, like C4.5, handle categorical features natively.Step 2: Eliminate wrong options.
One-hot encoding can lead to high dimensionality, label encoding can mislead the model, and PCA is not suitable for categorical data.Final Answer:
Option A -> Option AQuick Check:
Use native categorical support in trees. [OK]
Hint: Use native categorical support in trees. [OK]
Common Mistakes:
