I am using CvANN_MLP. When I call predict(), I don't get the same responses when I give all the data at once (1 row = vector) and when I make a loop and submit the vector one by one myself.
Here are my 2 solutions :
solution1 : for (int z = 0; z<valid_data.rows; z++){="" mat="" sample="valid_data.row(z);" mat="" result_test="Mat(1," 1,="" cv_32fc1);="" <br=""> ann.predict(sample, result_test); result_.at<float>(z) = result_test.at<float>(0); }
solution2 : float res = ann.predict(valid_data, result_);
They don't give the same result, but they sould right?