Help me with this error

Why is this error coming??

hey @Bhawna,
did you encoded the target feature before fitting into the model. ?

Sir can u check here https://drive.google.com/drive/folders/1yQJsy1HZ7jy1BNzDoDahG1t_YvVSyiht?usp=sharing

hey @Bhawna ,
the problem is , i don’t why it is happening but SVM module is taking your labels to be as object type.
It shouldn’t be so but it is doing so.
to correct this , just to below line.
svm_classifier.fit(image_train_data,label_train.astype('int'))

It will work perfectly.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.