Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4615

Meaning of Output of Artificial Neural Network

$
0
0
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_ 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. I trained and tested ANN with 6 classes. My question is, does the value returned by function ***predict()*** an index to a column with right prediction (high value) in the above matrix?

Viewing all articles
Browse latest Browse all 4615

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>