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

ignore unknown parameters when loading from model file #6126

Merged
merged 5 commits into from
Oct 7, 2023

Conversation

jmoralez
Copy link
Collaborator

@jmoralez jmoralez commented Oct 4, 2023

Issues a warning when a parameter type is not found when loading a booster from a model file instead of raising an error.

Fixes #6082

@jmoralez jmoralez marked this pull request as ready for review October 4, 2023 17:59
@jameslamb jameslamb added the fix label Oct 5, 2023
Copy link
Collaborator

@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 very much for this! I think it'll really help people trying to use models from older versions with v4.x.

I'm supportive of this generally, just left one suggestion about the wording of the warning.

I think we should also get a review from @guolinke or @shiyu1994 before merging this.

src/boosting/gbdt.h Outdated Show resolved Hide resolved
Co-authored-by: James Lamb <[email protected]>
@jameslamb jameslamb self-requested a review October 6, 2023 03:35
Copy link
Collaborator

@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.

Makes sense to me, thank you!

But let's please get a review from @guolinke or @shiyu1994 before merging.

Copy link
Collaborator

@guolinke guolinke 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, LGTM

@jameslamb jameslamb merged commit b793cd8 into master Oct 7, 2023
41 checks passed
@jameslamb jameslamb deleted the ignore-unknown-params branch October 7, 2023 03:43
Ten0 pushed a commit to Ten0/LightGBM that referenced this pull request Jan 12, 2024
Copy link

github-actions bot commented Oct 9, 2024

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https:/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lightgbm v3 model file not compatible with v4
3 participants