Skip to content

ignore unknown parameters when loading from model file#6126

Merged
jameslamb merged 5 commits intomasterfrom
ignore-unknown-params
Oct 7, 2023
Merged

ignore unknown parameters when loading from model file#6126
jameslamb merged 5 commits intomasterfrom
ignore-unknown-params

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.

Co-authored-by: James Lamb <jaylamb20@gmail.com>
@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
@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
@github-actions
Copy link
Contributor

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://github.com/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