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. In the context of model debugging, which of the following is a common symptom of data leakage?
easy
Solution
Step 1: Identify data leakage symptoms
Data leakage often results in a model that performs well on both training and validation sets because it has inadvertently learned from the validation data.Step 2: Eliminate wrong options
Options A, B, and C indicate poor generalization or overfitting, not data leakage.Final Answer:
Option D -> Option DQuick Check:
Data leakage = too good to be true [OK]
Hint: Data leakage = too good to be true [OK]
Common Mistakes:
3. When framing a business problem as an ML problem, which trade-off is most critical to consider?
medium
Solution
Step 1: Identify the key trade-off
In many business contexts, the trade-off between accuracy and interpretability is crucial because stakeholders need to understand model decisions.Step 2: Eliminate wrong options
Data volume vs. Model complexity is incorrect because data volume and model complexity are often complementary. Training time vs. Inference time is incorrect because training and inference times are usually secondary to model performance. Feature engineering vs. Hyperparameter tuning is incorrect because feature engineering and hyperparameter tuning are not directly opposing trade-offs.Final Answer:
Option C -> Option CQuick Check:
Balance accuracy with interpretability for stakeholder trust. [OK]
Hint: Balance accuracy with interpretability for stakeholder trust. [OK]
Common Mistakes:
4. You are tasked with designing a GNN for a dynamic graph where nodes and edges change over time. Which approach would best handle this scenario?
hard
Solution
Step 1: Understand the graph dynamics
Dynamic graphs require models that can adapt to changes in nodes and edges.Step 2: Evaluate each approach
Static GCNs and fixed adjacency matrices cannot adapt to changes, and RNNs are not designed for graph structures.Final Answer:
Option A -> Option AQuick Check:
Dynamic GNNs adapt to graph changes. [check]
Hint: Dynamic GNNs adapt to graph changes. [check]
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:
