I am trying to use the XGBClassifier wrapper provided by sklearn for a multiclass problem. My classes are [0, 1, 2], the goal I am using is multi:softmax . When I try to set the classifier, I get
xgboost.core.XGBoostError: value 0 for parameter num_class must be greater than 1
If I try to set the num_class parameter, I get an error
received an unexpected keyword argument 'num_class'
Sklearn sets this parameter automatically, so I should not pass this argument. But why am I getting the first error?
source share