Skip to content

[python-package] Add tests on Booster.eval() handling of new validation sets#7167

Merged
jameslamb merged 9 commits intolightgbm-org:masterfrom
daguirre11:test-booster
Apr 1, 2026
Merged

[python-package] Add tests on Booster.eval() handling of new validation sets#7167
jameslamb merged 9 commits intolightgbm-org:masterfrom
daguirre11:test-booster

Conversation

@daguirre11
Copy link
Copy Markdown
Contributor

Contributes to #7031
BEFORE
Screenshot 2026-02-24 at 1 31 13 PM

AFTER
Screenshot 2026-02-24 at 1 23 14 PM

2 line difference in coverage for /lightgbm/basic.py

@daguirre11 daguirre11 changed the title added test for booster eval [python-package] Added unit test for Booster eval Feb 24, 2026
@jameslamb jameslamb changed the title [python-package] Added unit test for Booster eval [python-package] Add tests on Booster.eval() handling of new validation sets Feb 27, 2026
Copy link
Copy Markdown
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Thanks so much for doing this, it's great to have some more test coverage of this method!

Co-authored-by: James Lamb <jaylamb20@gmail.com>
Copy link
Copy Markdown
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

If this passes CI I'll merge it, thanks so much for the help!

Co-authored-by: James Lamb <jaylamb20@gmail.com>
@jameslamb
Copy link
Copy Markdown
Member

Sorry for the couple of bad commits I pushed here, I think everything's looking good now!

The only remaining failing CI is the job we use to test against the latest nightly packages or lightgbm's dependencies. That's failing for reasons unrelated to this PR, tracked here: scikit-learn/scikit-learn#33616

If that isn't resolved upstream in a few days, we'll temporarily turn off that job so PRs like this one can move forwad.

@jameslamb jameslamb merged commit eb27a2f into lightgbm-org:master Apr 1, 2026
73 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants