### Question about classification with NN

Posted:

**Thu Jun 30, 2011 8:01 am**I am using AForge.Neuro.Learning:

I have NN with "SigmoidFunction" activation function and "BackPropagationLearning" teacher. I have n input neurons and 1 output neuron.

I have two classes: 0.3 and 0.7.

I am confused what to do when I do classification and I get a value of the output neuron such 0.54343 for example.

To which class does this feature vector belongs to (0.3 or 0.7)?

1. By absolute distance it is closer to 0.7, so it is class 0.7?

2. Should I use network with output neurons equal to the number of classes and set it like that "1 0 0 0" where 1 is the right class.

3. Maybe I should use "Soft-Max" activation function instead of sigmoid function?

Thanks,

Anton

I have NN with "SigmoidFunction" activation function and "BackPropagationLearning" teacher. I have n input neurons and 1 output neuron.

I have two classes: 0.3 and 0.7.

I am confused what to do when I do classification and I get a value of the output neuron such 0.54343 for example.

To which class does this feature vector belongs to (0.3 or 0.7)?

1. By absolute distance it is closer to 0.7, so it is class 0.7?

2. Should I use network with output neurons equal to the number of classes and set it like that "1 0 0 0" where 1 is the right class.

3. Maybe I should use "Soft-Max" activation function instead of sigmoid function?

Thanks,

Anton