This is the code I used
svmclassifier = SVC(kernel = "rbf",random_state=0)
svmclassifier.fit(x_train,y_train)
And this is the error: https://i.stack.imgur.com/9QonD.png
This is the code I used
svmclassifier = SVC(kernel = "rbf",random_state=0)
svmclassifier.fit(x_train,y_train)
And this is the error: https://i.stack.imgur.com/9QonD.png
this issue is always related to what is the type of your target y_train
. It should always be in integer or you can encode the target using LabelEncoder()