line 100, in <module> svm.train(train_data,cv.ml.ROW_SAMPLE,train_labels) cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\ml\src\data.cpp:259: error: (-215) samples.type() == 5 || samples.type() == 4 in function cv::ml::TrainDataImpl::setData Line 100 is: svm.train(train_data,cv.ml.ROW_SAMPLE,train_labels) train_data is an n-D numpy array with shape 60256512 and type Float 32. train_labels is a numpy array with shape 60*1. I am unable to understand what the error possibly means, and any help would be appreciated.