I am using XGBClassifier (in xgboost) for a multi-class classification. Upon executing the classifier, I am receiving an error stating:
unexpected keyword argument 'num_class'
Code that caused this error is listed below (params is a valid set of parameters for xgb):
xgb.XGBClassifier(params, num_class=100)
I searched a bit and found that 'num_class' parameter is named 'n_classes' for scikit implementation of XGBClassifier. I tried this change and received a similar error:
unexpected keyword argument 'n_classes'
Code that caused this error is listed below:
xgb.XGBClassifier(params, num_class=100)
Any help in fixing this error is appreciated!