Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Meaning of Output of Artificial Neural Network

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?

Meaning of Output of Artificial Neural Network

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

Meaning of Output of Artificial Neural Network

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:- are:-

[0.499678   0.500128    0.500167    0.499947    0.499756    0.499937]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?

Meaning of Output of Artificial Neural Network

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?