I am trying to use xgboost with my data, but my data columns includes categorical data, so I use
enable_categorical=True
However, when I do model.fit()
, I have this error
ValueError: Columns must be same length as key
I’ve checked the shape of x_train and y_train it doesn’t seem to have any problem.
print(X_train.shape)
print(y_train.shape)
(705, 21)
(705, 1)
Could anyone direct me to some direction to solve this error? Thank you