Skip to content

TST add test_binomial_vs_alternative_formulation #26298

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

Merged
merged 6 commits into from
May 16, 2023

Conversation

lorentzenchr
Copy link
Member

@lorentzenchr lorentzenchr commented Apr 29, 2023

Reference Issues/PRs

Makes #26278 smaller

What does this implement/fix? Explain your changes.

It adds a test for the binomial loss function that compares with an alternative formulation. This test is taken from sklearn.ensemble.test.test_gradient_boosting_loss_functions.py, test_binomial_deviance (which will be removed with #26278).

Any other comments?

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, otherwise LGTM

@thomasjpfan thomasjpfan added the Waiting for Second Reviewer First reviewer is done, need a second one! label May 3, 2023
Copy link
Contributor

@Micky774 Micky774 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but since I pushed a change since the last time @thomasjpfan reviewed, I'll leave the merger to him to ensure all still looks well

@thomasjpfan thomasjpfan merged commit 4a5f954 into scikit-learn:main May 16, 2023
@lorentzenchr lorentzenchr deleted the test_binomial branch June 2, 2023 13:13
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Meekail Zain <zainmeekail@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:ensemble module:test-suite everything related to our tests No Changelog Needed Waiting for Second Reviewer First reviewer is done, need a second one!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants