i have a problem, when i call SVM.train_auto with opencv2.3 for android, i have an error with response matrix because this matrix format is wrong.
I watched opencv documentation, but it doesn’t explain the format of response matrix.
Can anyone helps me?
I attach my code:
paramtriSVM = new CvSVMParams();
matriceSVM = new CvSVM();
Mat responso = new Mat();
Mat varID = new Mat();
Mat esempiID = new Mat();
matriceSVM.train_auto(res, responso, varID, esempiID, paramtriSVM);
The responses should not be empty. For classification problems, the responses are discrete class labels of the train Data. For regression problems, the responses are values of the function to be approximated.