Skip to content

Update the documentation of the loss parameter for the GradientBoostingClassifier #25372

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

Closed
wants to merge 3 commits into from

Conversation

Nebula1230
Copy link

@Nebula1230 Nebula1230 commented Jan 12, 2023

Reference Issues/PRs

Fixes #25206

What does this implement/fix? Explain your changes.

I did a documentation change where the deviance(=loss) given by the train_score_ is double the actual log_loss which gave some non understandable results when using the train_score_ functions for the training data and a classic log_normal function for the test data.
The fix i proposed is on the level of the documentary of the parameters of the loss of the GradientBoostingClassifier where i mentionned that loss(=deviance) might have a factor of two and that if we want the actual we need to take only half the loss.

Any other comments?

@TomDLT
Copy link
Member

TomDLT commented Jan 12, 2023

Thanks for the pull-request. To ease the review process, please:

  • update the pull-request with a more informative title.
  • describe the modification, or at least link to the original issue in the pull-request message ("Fixes #25206"), to create a hyperlink to the related issue.
  • change your automatic formatting to avoid modifying code you did not change. It might be a matter of updating black to version 22.3.0.

@TomDLT TomDLT mentioned this pull request Jan 12, 2023
@Nebula1230 Nebula1230 changed the title Fixes #25206 Update the documentation of the loss parameter for the GradientBoostingClassifier Jan 12, 2023
@Nebula1230 Nebula1230 closed this Jan 12, 2023
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

Successfully merging this pull request may close these issues.

Unclear train_score_ attribute description for GradientBoostingClassifier
2 participants