I am using the Matlab neural network toolbox in code form, for classification. When I use the statement y = net(x), after having trained the net, I get two rows of outputs, instead of one. What I have understood from the output is that it gives the probability of each samples belonging to class 1 or class 2. The first row of output indicates class 1, and the second row indicates class 2.
Why is the output given in this way, shouldn't there be just one value for each data sample, indicating which class it belongs to? Is this because softmax transfer function has been used?
Or am I making a mistake in understanding the output pattern?