Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::Mat testDataMat(1, 2, CV_32FC1, testData); // 1 row, 2 elements

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 elements

testData);