1 | initial version |
cv::Mat testDataMat(1, 2, CV_32FC1, testData); // 1 row, 2 elements
2 | No.2 Revision |
your train set had 10 rows and 2 feature-cols, and your test vec should have 1 row, and 2 cols.
cv::Mat testDataMat(1, 2, CV_32FC1, testData); // 1 row, 2 elementstestData);