Issue
Apart from binary:logistic
(which is the default objective function), is there any other built-in objective function that can be used in xbgoost.XGBClassifier
?
Solution
That's true that binary:logistic is the default objective for XGBClassifier, but I don't see any reason why you couldn't use other objectives offered by XGBoost package. For example, you can see in sklearn.py source code that multi:softprob is used explicitly in multiclass case.
Moreover, if it's really necessary, you can provide a custom objective function (details here).
Answered By - kawa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.