Metrics for Evaluation of Machine Learning Algorithms

Nischal Madiraju
Jul 5 · 2 min read

After processing the data and training the model the next step is to check how effective the model is. Different performance metrics are used to evaluate different Machine Learning Algorithms:

Accuracy

Accuracy is a good measure when the target variable classes in the data are nearly balanced. Accuracy is a relevant measure for binary classifier. For a binary classifier that classifies instances into positive (1) and negative (0) instances, any single prediction can fall in to one of four terms in the below.

a. True Positives (TP): True positives are the cases when the actual class of the data point was 1(True) and the predicted is also 1(True)

b. True Negatives (TN): True negatives are the cases when the actual class of the data point was 0(False) and the predicted is also 0(False)

c. False Positives (FP): False positives are the cases when the actual class of the data point was 0(False) and the predicted is 1(True). False is because the model has predicted incorrectly and positive because the class predicted was a positive one.

d. False Negatives (FN): False negatives are the cases when the actual class of the data point was 1(True) and the predicted is 0(False). False is because the model has predicted incorrectly and negative because the class predicted was a negative one.

Image for post
Image for post

In the Numerator, are our correct predictions (True positives and True Negatives)(Marked as red in the fig above) and in the denominator, are the kind of all predictions made by the algorithm (Right as well as wrong ones).

Precision

Precision tells what measure of positive predictions i.e. prediction of 1(True) were actually positive.

Image for post
Image for post

Recall

Recalls tells us what proportion of actual positive data points i.e. 1(True) were predicted as positive i.e. prediction of 1(True)

Image for post
Image for post

Gain Access to Expert View — Subscribe to DDI Intel

Data Driven Investor

from confusion to clarity not insanity

Sign up for DDIntel

By Data Driven Investor

In each issue we share the best stories from the Data-Driven Investor's expert community. Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Nischal Madiraju

Written by

Junior software engineer, writes about Artificial intelligence, Machine Learning and Deep Learning.

Data Driven Investor

from confusion to clarity not insanity

Nischal Madiraju

Written by

Junior software engineer, writes about Artificial intelligence, Machine Learning and Deep Learning.

Data Driven Investor

from confusion to clarity not insanity

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store