Skip to content

[python-package] Added test for pickling _InnerPredictor#7162

Open
daguirre11 wants to merge 4 commits intolightgbm-org:masterfrom
daguirre11:basic-innerpredictor-pickling-unpickling
Open

[python-package] Added test for pickling _InnerPredictor#7162
daguirre11 wants to merge 4 commits intolightgbm-org:masterfrom
daguirre11:basic-innerpredictor-pickling-unpickling

Conversation

@daguirre11
Copy link
Copy Markdown
Contributor

@daguirre11 daguirre11 commented Feb 22, 2026

Contributes to #7031
BEFORE
Screenshot 2026-02-22 at 1 27 24 PM

AFTER
Screenshot 2026-02-22 at 1 30 44 PM

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

NOTE
This only tests pickling. Unpickling requires a __set_state__ that restores the _handle . Without it, the unpickled _InnerPredictor is not possible. Would you like me to open a separate issue for that fix?

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