Practice
1. In the context of data splits, why is it important to have a separate validation set in addition to a test set?
easy
Solution
Step 1: Understand the role of validation set
The validation set is used to tune hyperparameters and prevent overfitting to the test set.Step 2: Eliminate wrong options
To provide more data for training the model. is incorrect because the validation set is not used for training. To reduce the computational cost of training. is incorrect as validation increases computational cost. To increase the accuracy of the model. is incorrect because validation itself doesn't increase accuracy.Final Answer:
Option A -> Option AQuick Check:
Validation prevents overfitting to test set. [OK]
Hint: Validation prevents overfitting to test set. [OK]
Common Mistakes:
2. 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:
3. A neural network using ReLU activation is not learning. What could be a likely cause?
medium
Solution
Step 1: Identify ReLU-specific issues.
ReLU can suffer from the dying ReLU problem where neurons output zero for all inputs.Step 2: Evaluate each option.
High learning rate (A) and small batch size (D) are not ReLU-specific. Vanishing gradients (B) are less likely with ReLU.Final Answer:
Option A -> Option AQuick Check:
Dying ReLU: neurons stuck at zero. [OK]
Hint: Dying ReLU: neurons stuck at zero. [OK]
Common Mistakes:
4. A decision tree model is overfitting the training data. What is the most likely cause?
medium
Solution
Step 1: Identify overfitting causes.
Overfitting often occurs when the model is too complex, such as a deep tree.Step 2: Eliminate wrong options.
A shallow tree would underfit, a small dataset affects generalization but not directly overfitting, and uninformative features would lead to poor performance, not overfitting.Final Answer:
Option D -> Option DQuick Check:
Deep trees overfit easily. [OK]
Hint: Deep trees overfit easily. [OK]
Common Mistakes:
5. You are tasked with designing a CNN for a medical imaging application where interpretability is crucial. Which approach would best leverage the inductive bias of CNNs for this task?
hard
Solution
Step 1: Consider interpretability needs
Small kernels with more layers help capture local patterns, which are crucial for interpretability in medical imaging.Step 2: Eliminate wrong options
Use very deep networks to capture complex patterns is incorrect because very deep networks can be less interpretable. Use shallow networks with large kernels to capture global patterns is incorrect as large kernels reduce local detail capture. Use networks with attention mechanisms to highlight important regions is incorrect because attention mechanisms, while useful, are not leveraging CNN's inductive bias.Final Answer:
Option A -> Option AQuick Check:
Small kernels capture local details, aiding interpretability. [OK]
Hint: Small kernels capture local details, aiding interpretability. [OK]
Common Mistakes:
