0
0
Computer Visionml~5 mins

Evaluation and confusion matrix in Computer Vision - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ACorrect predictions
BIncorrect predictions
CFalse positives
DFalse negatives
Which metric tells you the proportion of actual positives correctly identified?
AAccuracy
BPrecision
CRecall
DSpecificity
If a model predicts all samples as negative in a dataset with 90% negatives, what will be the approximate accuracy?
A90%
B10%
C50%
D100%
Which of these is NOT part of a confusion matrix?
AFalse Positive
BFalse Negative
CTrue Positive
DTrue Neutral
Why is a confusion matrix useful in computer vision classification tasks?
AIt shows how many pixels are in an image
BIt helps understand model errors per class
CIt speeds up training
DIt reduces image size
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.