Professional Documents
Culture Documents
UNIT-1-2.Binary Classification and Related Tasks
UNIT-1-2.Binary Classification and Related Tasks
Binary Classification
and
Related Tasks
Dr G.Kalyani
Department of Information Technology
Velagapudi Ramakrishna Siddhartha Engineering College
Topics
• Classification
Classification
Algorithms
Training
Data
Classifier
(Model)
Process (2): Using the Model in Prediction
Classifier
Testing Unseen
Data Data
(Jeff, Professor, 4)
Tenured
?
Classification
• Classification is the most common task in machine
learning.
• Mapping from Instance space“ “ to a class label
of different classes.
X Y
• Row and column sums are called Marginals.
Metrics for Evaluation
• Accuracy: Percentage of correct prediction
among the total
• Error rate: percentage of wrong predictions
among the total
• Precision(PPR) : Proportion of True Positives
among the predicted positives
• Recall (TPR): Proportion of True Positives among
the actual positives
• Specificity(TNR): Proportion of Predicted
Negatives among the predicted positives
• F1-Score:
Metrics for Evaluation
• Accuracy:
TP+TN/(TP+FP+FN+TN)
• Error rate:
1-Accuracy
• Precision(PPR) :
TP/(TP+FP)
• Recall (TPR):
TP/(TP+FN)
• Specificity(TNR):
TN/(TN+FP)
• False Positive Rate:
FP/(TN+FP) or 1-Specificity
• F1-Score = 2*(Recall * Precision) / (Recall + Precision)
Metrics: Accuracy and Error rate
• Accuracy = TP+TN/(TP+FP+FN+TN)
FP TN
Metrics: Sensitivity and Specificity
•
All Measures
All Measures
Coverage Plot
TP FP TN FN TPR FPR
1 0 5 4
2 0 5 3
2 1 4 3
Binary classifier