Practice
1. In a medical diagnosis system, why might you choose recall over precision?
medium
Solution
Step 1: Understand the context.
In medical diagnosis, missing a positive case (false negative) can be critical.Step 2: Choose the metric that minimizes false negatives.
Recall focuses on minimizing false negatives.Final Answer:
Option C -> Option CQuick Check:
Recall minimizes false negatives. [OK]
Hint: Recall minimizes false negatives. [OK]
Common Mistakes:
2. When choosing between LSTM and GRU for a time series prediction task with limited computational resources, which is generally more appropriate and why?
medium
Solution
Step 1: Compare LSTM and GRU.
GRU is simpler and often faster due to fewer parameters, making it suitable for limited resources.Step 2: Eliminate wrong options.
LSTM's complexity isn't always needed, GRU isn't always more accurate, and LSTM's longer sequence handling isn't a universal advantage.Final Answer:
Option C -> Option CQuick Check:
GRU: fewer parameters, faster. [OK]
Hint: GRU: fewer parameters, faster. [OK]
Common Mistakes:
3. When choosing between LSTM and GRU for a sequence modeling task, which scenario would favor using GRU over LSTM?
medium
Solution
Step 1: Compare LSTM and GRU.
GRUs are simpler and computationally more efficient than LSTMs.Step 2: Match to scenario.
GRU is preferred when computational efficiency is a priority.Final Answer:
Option A -> Option AQuick Check:
GRU is simpler, faster than LSTM. [check]
Hint: GRU is simpler, faster than LSTM. [check]
Common Mistakes:
4. You are tasked with designing a segmentation system for autonomous vehicles that must handle both object detection and segmentation efficiently. Which approach would you choose and why?
hard
Solution
Step 1: Determine system requirements
Autonomous vehicles need both object detection and detailed scene understanding.Step 2: Evaluate segmentation approaches
Semantic lacks instance detail, instance lacks semantic context, object detection is not segmentation.Final Answer:
Option B -> Option BQuick Check:
Panoptic = Comprehensive scene understanding [OK]
Hint: Panoptic = Comprehensive scene understanding [OK]
Common Mistakes:
5. In a real-time system where predictions need to be made quickly, which approach to linear regression is more suitable and why?
hard
Solution
Step 1: Consider real-time constraints
Stochastic Gradient Descent (SGD) updates weights after each data point, allowing for faster, more frequent updates suitable for real-time systems.Step 2: Eliminate wrong options
Batch Gradient Descent (A) is too slow for real-time, Least Squares (C) is not iterative, and Mini-batch (D) is a compromise but not as fast as SGD.Final Answer:
Option A -> Option AQuick Check:
SGD updates weights after each data point. [OK]
Hint: SGD updates weights after each data point. [OK]
Common Mistakes:
