abhishekkrthakur / approachingalmost

Approaching (Almost) Any Machine Learning Problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page No - 59 Confustion matric

pyanishjain opened this issue · comments

for class 2
there is 1 in class 0 but there is No instance of class 2 which predicted ad 0 in prediction lists so there must be 0
so column for class2 is like

  • 0
  • 2
  • 1

let me know if I am wrong I am learning

Actual classes : [ 0, 1, 2, 0, 1, 2, 0, 2, 2]
Predicted classes : [ 0, 2, 1, 0, 2, 1, 0, 0, 2]

From the list we can see that for the label 2 in actual class the corresponding prediction are 1, 1, 0, 2
so at two instances of actual class are predicted as 1 and 1 instance as 0 and one instance as 2
so the column would be

  • 1
  • 2
  • 1
    Thank you .