I am working on image classification for cifar data set.I obtained the predicted labels as output mapped from 0-1 for 10 different classes is there any way to find the class the predicted label belongs?
//sample output obtained
array([3.3655483e-04, 9.4402254e-01, 1.1646092e-03, 2.8560971e-04,
1.4086446e-04, 7.1564602e-05, 2.4985364e-03, 6.5030693e-04,
3.4783698e-05, 5.0794542e-02], dtype=float32)
One way is to find the max and make that index as 1 and rest to 0.
//for above case it should look like this
array([0, 1, 0, 0, 0, 0, 0, 0, 0, 0])
can anybody tell me how to do this or else if you have any better methods please suggest. thanks