Practice
1. In the context of backpropagation, which of the following best describes the role of the chain rule?
easy
Solution
Step 1: Understand the chain rule in backpropagation
The chain rule is used to compute the gradient of the loss function with respect to each weight by propagating gradients backward through the network.Step 2: Eliminate wrong options
It updates the weights directly without considering the gradient. is incorrect because the chain rule involves gradients. It prevents the vanishing gradient problem by normalizing gradients. is incorrect because it doesn't address vanishing gradients directly. It ensures that the learning rate is adaptive for each layer. is incorrect because the chain rule is not about adaptive learning rates.Final Answer:
Option B -> Option BQuick Check:
Chain rule computes gradients for weights. [OK]
Hint: Chain rule computes gradients for weights. [OK]
Common Mistakes:
2. In the context of cross-validation, which method is most appropriate for imbalanced datasets?
easy
Solution
Step 1: Identify the need for balanced class distribution.
Imbalanced datasets require maintaining class distribution in each fold.Step 2: Eliminate wrong options.
K-Fold does not ensure class balance (A), Time Series Split is for temporal data (C), Leave-One-Out is computationally expensive and doesn't address imbalance (D).Final Answer:
Option C -> Option CQuick Check:
Stratified keeps class balance. [OK]
Hint: Stratified keeps class balance. [OK]
Common Mistakes:
3. 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:
4. A panoptic segmentation model is producing poor results with overlapping instances. What is the most likely cause of this issue?
medium
Solution
Step 1: Identify the segmentation issue
Poor results with overlapping instances suggest a failure in distinguishing between semantic and instance tasks.Step 2: Eliminate wrong options
Model depth and data diversity affect general performance, not specific task distinction; learning rate affects convergence, not task separation.Final Answer:
Option D -> Option DQuick Check:
Overlapping = Task distinction problem [OK]
Hint: Overlapping = Task distinction problem [OK]
Common Mistakes:
5. You are designing a transformer model for a language translation task. Which normalization technique would you choose and why?
hard
Solution
Step 1: Consider the architecture of transformers.
Transformers process sequences and often use self-attention mechanisms, where Layer Normalization is more effective.Step 2: Evaluate the benefits of Layer Normalization.
Layer Normalization normalizes across features, which is beneficial for the attention mechanism in transformers.Final Answer:
Option A -> Option AQuick Check:
Layer Norm fits transformers' self-attention. [OK]
Hint: Layer Norm fits transformers' self-attention. [OK]
Common Mistakes:
