need help for classification

33 views
Skip to first unread message

Ferhat KURTULMUŞ

unread,
Aug 14, 2014, 8:23:05 AM8/14/14
to py-ne...@googlegroups.com
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.

Evgeny Zuev

unread,
Aug 15, 2014, 11:53:36 PM8/15/14
to py-ne...@googlegroups.com
I use max value for this.
Let me know if you know another way of obtaining class label
Reply all
Reply to author
Forward
0 new messages