I have successfully trained ANN. I have tested it with one of the training sample as shown below and it gives me two outputs:-
Mat_ <float> output;
float out = ann->predict(hists.row(8), output);
cout << "ANN Output = " << out << endl;
writeMatToFile(output, "ANNPredict.csv");
The value stored in the variable out is 2 and the values in the Mat output are:- [0.499678 0.500128 0.500167 0.499947 0.499756 0.499937] which is a row matrix. My question is, does the value returned by function predict() an index to a column with right prediction (high value) in the above matrix?