Practice
1. In the context of K-Means clustering, which initialization method is most likely to avoid poor local minima?
easy
Solution
Step 1: Understand initialization impact
K-Means++ initialization helps in spreading initial centroids to avoid poor local minima.Step 2: Eliminate wrong options
Random initialization can lead to poor local minima. Using centroids from a previous run might not improve if the previous run was suboptimal. Initializing all centroids to the same point is clearly incorrect.Final Answer:
Option A -> Option AQuick Check:
K-Means++ spreads centroids well [OK]
Hint: K-Means++ spreads centroids well [OK]
Common Mistakes:
2. In the context of K-Nearest Neighbors, what is the 'curse of dimensionality'?
easy
Solution
Step 1: Understand the curse of dimensionality
As dimensions increase, the volume of the space increases exponentially, making data sparse.Step 2: Eliminate wrong options
The model becomes more accurate as dimensions increase. is incorrect because accuracy typically decreases. The model requires less data as dimensions increase. is wrong because more data is needed. The model's complexity decreases with more dimensions. is incorrect as complexity often increases.Final Answer:
Option D -> Option DQuick Check:
High dimensions dilute distance meaning. [OK]
Hint: High dimensions dilute distance meaning. [OK]
Common Mistakes:
3. In a regression problem where outliers are present, which metric is generally more robust to these outliers?
easy
Solution
Step 1: Understand the impact of outliers on metrics.
MAE is less sensitive to outliers compared to MSE and RMSE because it doesn't square the errors.Step 2: Eliminate wrong options.
MSE and RMSE are sensitive to outliers due to squaring errors. MAPE is not suitable for zero or near-zero values.Final Answer:
Option D -> Option DQuick Check:
MAE handles outliers better than MSE. [OK]
Hint: MAE is less sensitive to outliers than MSE. [OK]
Common Mistakes:
4. A Transformer model is underperforming on a sequence prediction task. The model seems to ignore the order of words. What is the most likely cause?
medium
Solution
Step 1: Identify symptoms
The model ignoring word order suggests an issue with positional encoding, which provides order information.Step 2: Eliminate wrong options
The model's learning rate is too high is incorrect because learning rate affects convergence, not order. The self-attention mechanism is not capturing dependencies is incorrect because self-attention captures dependencies, not order. The model has too few layers is incorrect because layer count affects capacity, not order.Final Answer:
Option C -> Option CQuick Check:
Order issues? Check positional encoding. [OK]
Hint: Order issues? Check positional encoding. [OK]
Common Mistakes:
5. You are tasked with adapting a Transformer model for a real-time translation application on mobile devices. Which approach is most suitable?
hard
Solution
Step 1: Consider constraints
Real-time applications on mobile devices require efficient models with low latency and small size.Step 2: Eliminate wrong options
Use a larger model with more layers for better accuracy is incorrect because larger models increase latency. Increase the number of attention heads for better context understanding is incorrect because more heads increase complexity. Use a higher learning rate to speed up training is incorrect because learning rate affects training, not inference.Final Answer:
Option B -> Option BQuick Check:
Mobile apps need efficient, small models. [OK]
Hint: Mobile apps need efficient, small models. [OK]
Common Mistakes:
