Recall & Review
beginner
What is a confusion matrix in machine learning?
A confusion matrix is a table that shows the number of correct and incorrect predictions made by a classification model, broken down by each class. It helps us understand how well the model is performing.
Click to reveal answer
beginner
What do the terms True Positive (TP), False Positive (FP), True Negative (TN), and False Negative (FN) mean?
TP: Model correctly predicts positive class.<br>FP: Model incorrectly predicts positive class.<br>TN: Model correctly predicts negative class.<br>FN: Model incorrectly predicts negative class.
Click to reveal answer
beginner
How is accuracy calculated from a confusion matrix?
Accuracy = (TP + TN) / (TP + TN + FP + FN). It measures the overall correctness of the model's predictions.
Click to reveal answer
intermediate
Why might accuracy be misleading in imbalanced datasets?
If one class is much more common, a model can predict that class all the time and get high accuracy but perform poorly on the rare class. Other metrics like precision and recall help in such cases.Click to reveal answer
intermediate
What are precision and recall, and why are they important?
Precision measures how many predicted positives are actually positive (TP / (TP + FP)).<br>Recall measures how many actual positives were correctly predicted (TP / (TP + FN)).<br>They help evaluate model performance especially when classes are imbalanced.
Click to reveal answer
What does the diagonal of a confusion matrix represent?
✗ Incorrect
The diagonal entries show the number of correct predictions for each class.
Which metric tells you the proportion of actual positives correctly identified?
✗ Incorrect
Recall measures how many actual positive cases were correctly predicted.
If a model predicts all samples as negative in a dataset with 90% negatives, what will be the approximate accuracy?
✗ Incorrect
Predicting all negatives correctly matches the 90% negative class, so accuracy is about 90%.
Which of these is NOT part of a confusion matrix?
✗ Incorrect
There is no 'True Neutral' in confusion matrix terminology.
Why is a confusion matrix useful in computer vision classification tasks?
✗ Incorrect
Confusion matrix helps analyze which classes the model confuses, improving understanding of errors.
Explain how to interpret a confusion matrix and what insights it provides about a classification model.
Think about how the matrix shows where the model gets things right or wrong.
You got /4 concepts.
Describe why accuracy alone might not be enough to evaluate a model and which other metrics can help.
Consider cases where one class dominates the data.
You got /4 concepts.