When I am trying to fit my model on X_train and y_train, it gives me an error as shown in the image. The term Alberta is one of the entry in the province column of the dataset. Here i am using Decision Tree and Random forest as it is an unbalanced dataset. Please help me to resolve this error. I don't know where am i going wrong..
This probably happens because you have both numerical values and strings in the dataset. Some solutions I would suggest are:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.