Practice
Solution
Step 1: Understand the decision boundary.
The decision boundary in logistic regression is where the predicted probability is 0.5, indicating equal likelihood of either class.Step 2: Eliminate wrong options.
The point where the model's accuracy is maximized. is incorrect because accuracy is not directly related to the decision boundary. The line that separates the data into two equal parts. is incorrect as it describes a median, not a decision boundary. The point where the loss function is minimized. is incorrect because the loss function is minimized during training, not at the decision boundary.Final Answer:
Option D -> Option DQuick Check:
Decision boundary = probability 0.5 [OK]
Solution
Step 1: Identify symptoms of vanishing gradients
Extremely small gradients often indicate the vanishing gradient problem, typically caused by certain activation functions like sigmoid or tanh.Step 2: Eliminate wrong options
The learning rate is too high. is incorrect because a high learning rate would cause divergence. The network is too shallow. is incorrect because a shallow network is less prone to vanishing gradients. The dataset is too small. is unrelated to gradient size.Final Answer:
Option C -> Option CQuick Check:
Small gradients often mean vanishing issue. [OK]
Solution
Step 1: Understand slice-based evaluation trade-offs
More slices can provide detailed insights but may reduce interpretability.Step 2: Eliminate wrong options
Balancing model complexity with training time. is unrelated to slice evaluation. Balancing data augmentation with overfitting. is about data augmentation, not slicing. Balancing feature selection with model accuracy. is about feature selection, not slicing.Final Answer:
Option C -> Option CQuick Check:
More slices = less interpretability. [OK]
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]
Solution
Step 1: Analyze the symptoms
Underperformance on complex tasks often indicates a lack of capacity to capture hierarchical features, suggesting the network might be too shallow.Step 2: Eliminate wrong options
The network is too deep, causing overfitting. is incorrect because overfitting would show high training accuracy. The learning rate is too high, causing divergence. is incorrect because divergence would cause erratic loss. The batch size is too small, causing slow convergence. is incorrect because slow convergence would not cause underperformance if training is complete.Final Answer:
Option D -> Option DQuick Check:
Shallow networks miss hierarchies. [OK]
