Ask Your Question
0

Meaning of Output of Artificial Neural Network

asked 2016-06-08 09:56:34 -0600

Angulu gravatar image

updated 2016-06-08 10:00:33 -0600

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. 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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-05-24 08:28:29 -0600

alexMm1 gravatar image

The out value 2 means that the highest value in your output is output(2).....for this reason, your testdata is classified as class 3

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-08 09:56:34 -0600

Seen: 260 times

Last updated: May 24 '17