Precision score, recall, and F-measure

Precision score is as follows:

Here, tp is the number of true positives and fp is the number of false positives. The precision is the ability of the classifier to not label as positive a sample that is negative. The best value is 1 and the worst value is 0.

Recall is as follows:

Here, tp is the number of true positives and fn is the number of false negatives. The recall can be described as the ability of the classifier to find all the positive samples. Its values range from 1 (optimum) to zero.

F measure ...

Get Machine Learning for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.