Practice
Solution
Step 1: Identify the technique that modifies the loss function.
Focal Loss is designed to focus more on hard-to-classify examples by adjusting the loss function.Step 2: Eliminate wrong options.
Oversampling and undersampling adjust the dataset, not the loss function. Cost-sensitive learning modifies the cost, not the focus on hard examples.Final Answer:
Option D -> Option DQuick Check:
Focal Loss focuses on hard examples. [OK]
Solution
Step 1: Identify the scenario.
Supervised learning is used when labeled data is available and the goal is to predict outcomes.Step 2: Eliminate wrong options.
When you want to cluster similar data points without labels. describes unsupervised learning (clustering), When you need to explore an environment to maximize rewards. describes reinforcement learning (exploration and rewards), and When you want to reduce dimensionality of data without labels. describes unsupervised learning (dimensionality reduction).Final Answer:
Option B -> Option BQuick Check:
Labeled data -> Supervised learning [OK]
Solution
Step 1: Identify symptoms of overfitting
Overfitting occurs when a model performs well on training data but poorly on unseen data.Step 2: Determine the cause
A complex model with too many parameters relative to the data size is a common cause of overfitting.Final Answer:
Option B -> Option BQuick Check:
Complex models overfit small data. [OK]
Solution
Step 1: Analyze performance discrepancy
Significant improvement on the test set but not on the validation set suggests an issue with test set integrity.Step 2: Identify data leakage
Data leakage from the test set can artificially inflate performance metrics.Final Answer:
Option A -> Option AQuick Check:
Test set improvement only? Check for leakage [OK]
Solution
Step 1: Consider the nature of image data
Image data often requires handling non-linear separability due to complex patterns.Step 2: Evaluate kernel suitability
Linear kernel, because it is computationally efficient for image data is incorrect because linear kernels are not suitable for non-linear data. Polynomial kernel, because it captures complex patterns in image data is incorrect because polynomial kernels can be computationally expensive. Sigmoid kernel, because it mimics neural network behavior is incorrect because sigmoid kernels are less commonly used and can be unstable.Final Answer:
Option A -> Option AQuick Check:
RBF kernel for non-linear image data [OK]
