Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In sklearn's classification_report, what does avg/total mean? How is it computed?

Tags:

scikit-learn

              precision    recall  f1-score   support

          0       0.98      0.90      0.94       305
          1       0.77      0.93      0.84       102
avg / total       0.92      0.91      0.91       407    

what does avg/total mean? and how does it be computed? didn't find answer on the official website TAT

like image 699
L.Elizabeth Avatar asked Apr 22 '17 06:04

L.Elizabeth


People also ask

What is AVG total in classification report?

It's either average or total. Average refers to the first 3: precision, recall and f1-score whereas total refers only to support. Edit: Just to be clear, the average refers to the weighted average, where each label's weight is its support. Follow this answer to receive notifications.

What is macro AVG and weighted average in classification report?

average=macro says the function to compute f1 for each label, and returns the average without considering the proportion for each label in the dataset. average=weighted says the function to compute f1 for each label, and returns the average considering the proportion for each label in the dataset.

What is classification report in Sklearn?

A Classification report is used to measure the quality of predictions from a classification algorithm. How many predictions are True and how many are False. More specifically, True Positives, False Positives, True negatives and False Negatives are used to predict the metrics of a classification report as shown below.


1 Answers

It's either average or total. Average refers to the first 3: precision, recall and f1-score whereas total refers only to support.

Edit: Just to be clear, the average refers to the weighted average, where each label's weight is its support.

like image 149
Eran Avatar answered Jan 02 '23 12:01

Eran