Challenge - 5 Problems
Classification Metrics Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Metrics
intermediate2:00remaining
Calculate accuracy from confusion matrix
Given the confusion matrix below, what is the accuracy of the classification model?
Confusion matrix:
True Positive (TP) = 40
True Negative (TN) = 50
False Positive (FP) = 10
False Negative (FN) = 5
Confusion matrix:
True Positive (TP) = 40
True Negative (TN) = 50
False Positive (FP) = 10
False Negative (FN) = 5
Attempts:
2 left
❓ Metrics
intermediate2:00remaining
Identify precision from classification results
A model predicted 30 true positives, 10 false positives, and 20 false negatives. What is the precision of the model?
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Calculate recall from confusion matrix
Given the confusion matrix:
TP = 25, FP = 15, FN = 5, TN = 55
What is the recall of the model?
TP = 25, FP = 15, FN = 5, TN = 55
What is the recall of the model?
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Compute F1 score from precision and recall
If a model has precision = 0.8 and recall = 0.6, what is the F1 score?
Attempts:
2 left
🧠 Conceptual
expert2:00remaining
Choosing the best metric for imbalanced data
You have a dataset where 95% of the samples belong to one class and 5% to the other. Which metric is most reliable to evaluate a model's performance on the minority class?
Attempts:
2 left