Iam working on binary image classification problem using supervised machine learning. I used svm classifier algorithm. First I created a numpy array for normalized color images in a variable X,whose shape is (17500,32,32,3). Then after data splitting, X_train has the shape (14000,32,32,3) and dimension 4 and y_train has the shape (14000,2) and dimension 2.
clf.fit(X_train,y_train)
After running this code I got an value error: Found array of dimension 4 estimator has dimension <=2.
Thanks in advance!