Practice
1. In the context of model calibration, which metric is most appropriate to evaluate the probability outputs of a classifier?
easy
Solution
Step 1: Identify the purpose of calibration.
Calibration aims to ensure that predicted probabilities reflect true likelihoods.Step 2: Evaluate each metric.
Accuracy, precision, and F1 score do not consider probability estimates, only classification decisions. Log Loss penalizes incorrect probability estimates, making it suitable for calibration.Final Answer:
Option C -> Option CQuick Check:
Log Loss evaluates probability accuracy. [OK]
Hint: Log Loss evaluates probability accuracy. [OK]
Common Mistakes:
2. In the context of Support Vector Machines, what is the primary purpose of the margin?
easy
Solution
Step 1: Understand the role of the margin
The margin in SVM is the distance between the decision boundary and the nearest data points from either class.Step 2: Eliminate wrong options
To minimize the number of support vectors is incorrect because the number of support vectors is not minimized. To ensure the model is non-linear is incorrect because the margin itself does not ensure non-linearity. To reduce the dimensionality of the data is incorrect because the margin does not reduce dimensionality.Final Answer:
Option B -> Option BQuick Check:
Margin maximizes boundary distance [OK]
Hint: Margin maximizes boundary distance [OK]
Common Mistakes:
3. When training a deep neural network, which approach is more suitable to mitigate the vanishing gradient problem?
medium
Solution
Step 1: Identify methods to mitigate vanishing gradients
ReLU activation functions help mitigate the vanishing gradient problem by maintaining gradients through layers.Step 2: Eliminate wrong options
Use a very small learning rate. is incorrect because a small learning rate doesn't address vanishing gradients. Increase the number of layers. exacerbates the problem. Use L2 regularization. is unrelated to gradient flow.Final Answer:
Option D -> Option DQuick Check:
ReLU helps maintain gradients. [OK]
Hint: ReLU helps maintain gradients. [OK]
Common Mistakes:
4. A recurrent neural network is not learning effectively. The loss plateaus early during training. What is the most likely cause?
medium
Solution
Step 1: Identify symptoms of vanishing gradient.
Early plateauing of loss often indicates vanishing gradients.Step 2: Eliminate other causes.
High learning rate (A) would cause erratic loss, overfitting (B) would show low training loss, and small dataset (D) would not cause early plateau.Final Answer:
Option C -> Option CQuick Check:
Early plateau = vanishing gradient. [check]
Hint: Early plateau = vanishing gradient. [check]
Common Mistakes:
5. A deployed model is showing unexpected behavior with high variance in predictions. What is the most likely cause?
medium
Solution
Step 1: Identify the symptom.
High variance in predictions suggests the model is not generalizing well.Step 2: Determine the most likely cause.
Data drift, where the input data distribution changes over time, is a common cause of unexpected behavior in production.Final Answer:
Option D -> Option DQuick Check:
Data drift causes unexpected variance. [OK]
Hint: Data drift causes unexpected variance. [OK]
Common Mistakes:
