X_train and y_train were different dtypes. Stumbled upon this error while using Onehotencoder to convert dtype. trying to use asarray() but can find my way through it