Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(A doubt NOT an issue) Gradient of loss function having different sign after performing first-degree differentiation of LogisticLoss #107

Open
mehulofficial14 opened this issue Jan 23, 2024 · 0 comments

Comments

@mehulofficial14
Copy link

mehulofficial14 commented Jan 23, 2024

I differentiated the loss function in the LogisiticLoss() class used in XGboost to get the gradient. I am getting (y - p) but turns out that it is -(y - p). For more reference, here is the link to the exact class and function, I am referring to. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant