You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why are the results different between custom cross-entropy loss function and official cross-entropy loss function like objective:binary-logistic?
#5621
Closed
GuoYL36 opened this issue
Apr 29, 2020
· 0 comments
· Fixed by #5981
Hi,I want to use custom objective function,and I use the cross-entropy loss function according to https://github.com/dmlc/xgboost/blob/master/demo/guide-python/custom_objective.py. Then,I use the official cross-entropy loss function, like objective:binary-logistic for comparsion. And I find the results are differents, Here is the test example:
The text was updated successfully, but these errors were encountered:
GuoYL36
changed the title
Why are the results different between custom cross-entropy loss function and official cross-entropy loss function contained?
Why are the results different between custom cross-entropy loss function and official cross-entropy loss function like objective:binary-logistic?
Apr 29, 2020
Hi,I want to use custom objective function,and I use the cross-entropy loss function according to https://github.com/dmlc/xgboost/blob/master/demo/guide-python/custom_objective.py. Then,I use the official cross-entropy loss function, like objective:binary-logistic for comparsion. And I find the results are differents, Here is the test example:
When I rewrite the function as
I find the results is same, so I want to know whether or not the example in https://github.com/dmlc/xgboost/blob/master/demo/guide-python/custom_objective.py is right..
The text was updated successfully, but these errors were encountered: