Error trying to train a cv::ml::SVMSGD: (-215:Assertion failed) responses.type() == CV_32F || responses.type() == CV_32S in function 'setData'

wrong data type.

make sure it satisfies the assertion.