how can I obtain class labels from nn output?
For instance, I have an output for a sample (a classification task with 8 classes):
[ 2.62756629e-01, 2.02435755e-02, 3.06057593e-02, 8.20536678e-06, 2.62841285e-01, 9.04524944e-06, 2.93134246e-01, 1.11826593e-01]
As I know that these are class probabilities. Is there a formal way of obtaining a class label from this output?
What I can consider is taking maximum of this row to binarize the output such that: [0, 0, 0, 0, 0, 0, 1, 0]. I am not sure if it is a correct way. In some cases, two or more classes may have same probabilities values?
Any help will be greatly appreciated.
Thanks in advance.