Dev Genius

Coding, Tutorials, News, UX, UI and much more related to development

Follow publication

Member-only story

Precision

Dr. Alvin Ang
Dev Genius
Published in
3 min readJul 18, 2023

--

This is part of a series on :

Performance Metrics for Machine Learning Models in Python

13 stories

When to use What?

Key Purpose of Obtaining Precision

Objective for getting both Precision and Recall is to obtain the F1 score (as we will see later).

What is Precision?

Precision is between 0 to 1

  • 0 = BAD
  • 1 = GOOD

So if we have Precision = 0.9… we can say…

This Model is very Precise because most of its prediction on Positives are Really Actually True…

Precision in Python

Precision Score on PIMA Indian Diabetes Data

The model can Precisely predict

Precision for Class 0 = 83%.

Out of all instances predicted as 0, what percentage were actually 0.

--

--