I use XGBClassifier (in xgboost) to classify multiple classes. After running the classifier, I get an error message:
unexpected keyword argument 'num_class'
The code that caused this error is shown below (params is a valid set of parameters for xgb):
xgb.XGBClassifier(params, num_class=100)
I searched a bit and found that the num_class parameter has the name 'n_classes' to implement the XGBClassifier script. I tried this change and got a similar error:
unexpected keyword argument 'n_classes'
The code that caused this error is shown below:
xgb.XGBClassifier(params, num_class=100)
Any help in fixing this error is appreciated!
source share