0
0
ML Pythonprogramming~5 mins

Classification evaluation (accuracy, precision, recall, F1) in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is accuracy in classification evaluation?
Accuracy is the ratio of correct predictions to the total number of predictions made. It tells us how often the model is right overall.
Click to reveal answer
beginner
Define precision in classification tasks.
Precision measures how many of the items predicted as positive are actually positive. It shows the model's exactness or quality of positive predictions.
Click to reveal answer
beginner
What does recall tell us in classification?
Recall tells us how many of the actual positive cases the model correctly found. It measures the model's ability to find all positive examples.
Click to reveal answer
intermediate
Explain the F1 score and why it is useful.
The F1 score is the harmonic mean of precision and recall. It balances both, giving a single score that considers both false positives and false negatives.
Click to reveal answer
intermediate
Why might accuracy be misleading in some classification problems?
Accuracy can be misleading when classes are imbalanced. For example, if 95% of data is one class, a model predicting only that class gets 95% accuracy but fails to detect the other class.
Click to reveal answer
Which metric tells you the proportion of true positives out of all predicted positives?
APrecision
BRecall
CAccuracy
DF1 score
If a model has high recall but low precision, what does it mean?
AIt balances false positives and false negatives well
BIt misses many positives but has few false positives
CIt finds most positives but also has many false positives
DIt is very accurate overall
What is the F1 score a balance of?
APrecision and recall
BAccuracy and recall
CAccuracy and precision
DTrue positives and true negatives
Why is accuracy not always the best metric for classification?
ABecause it ignores false negatives
BBecause it ignores false positives
CBecause it only works for binary classification
DBecause it can be high even if the model misses rare classes
Recall is also known as:
AFalse positive rate
BTrue positive rate
CPrecision
DAccuracy
Describe in your own words what precision and recall measure in classification.
Explain why the F1 score is useful when evaluating a classification model.