Suppose you build a classifier on a given data set with two classes, namely positive and negative and the classifier outputs the results in the form of confusion matrix as shown in Table 1. Table 1: Confusion Matrix Predictions + Actual + 80 230 (a) Fill in the following values based on the given questions (i) True Positive: (ii) True Negative: (iii) False Positive: (iv) False Negative: (b) Calculate the accuracy obtained from the classifier. Show the computation to obtain the accuracy rate. (c) Calculate the precision obtained from the classifier. Show the computation to obtain the precision rate. (d) Calculate the recall obtained from the classifier. Show the computation to obtain the recall rate. 70 840

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 10SA: Consider the definition of the class product Type as given in Exercise 8. Answer the following...
icon
Related questions
Question

a and b please, and if possible to do c and d too

Suppose you build a classifier on a given data set with two classes, namely positive and
negative and the classifier outputs the results in the form of confusion matrix as shown in
Table 1.
Table 1: Confusion Matrix
+
Actual
+
80
230
(a) Fill in the following values based on the given questions
(i) True Positive:
(ii) True Negative:
(iii) False Positive:
(iv) False Negative:
(b) Calculate the accuracy obtained from the classifier. Show the computation to obtain the
accuracy rate.
(c) Calculate the precision obtained from the classifier. Show the computation to obtain the
precision rate.
(d) Calculate the recall obtained from the classifier. Show the computation to obtain the
recall rate.
Predictions
-
70
840
Transcribed Image Text:Suppose you build a classifier on a given data set with two classes, namely positive and negative and the classifier outputs the results in the form of confusion matrix as shown in Table 1. Table 1: Confusion Matrix + Actual + 80 230 (a) Fill in the following values based on the given questions (i) True Positive: (ii) True Negative: (iii) False Positive: (iv) False Negative: (b) Calculate the accuracy obtained from the classifier. Show the computation to obtain the accuracy rate. (c) Calculate the precision obtained from the classifier. Show the computation to obtain the precision rate. (d) Calculate the recall obtained from the classifier. Show the computation to obtain the recall rate. Predictions - 70 840
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning