Member-only story

The dead simple explanation of precision and recall

Rabin Poudyal
1 min readOct 7, 2021

Most beginner machine learning practictioners get confused with these two metrics that are the heart building any successful ML model.

Task: Classify cat/not-cat

After classifying bunch of images:

Precision:

Just take the ones that are predicted as cat.

How many of those images were actually cat?

Recall:

How many % of cats were correctly recognised by the model?

Which one is better?

It seems both of them needs to be better metrics for our model. But should precision be high or should recall be high? Or should both of the them be high?

That’s where F1-score comes to play:

F1-Score:

It is the average(actually a harmonic mean) of precision and recall. So whichever has better F1 score wins.

If you like my article, don’t forget to follow me on Medium, or connect me on Linkedin, or follow me on twitter.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Rabin Poudyal
Rabin Poudyal

Written by Rabin Poudyal

Software Engineer, Data Science Practitioner. Say "Hi!" via email: rabinpoudyal1995@gmail.com or visit my website https://rabinpoudyal.com.np

No responses yet

Write a response