Skip to content

ignore unknown parameters when loading from model file - #6126

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

jameslamb merged 5 commits into
masterfrom
ignore-unknown-params

Conversation

@jmoralez

@jmoralez jmoralez commented Oct 4, 2023

Copy link
Copy Markdown
Collaborator

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

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

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.

Comment thread src/boosting/gbdt.h Resolved
Co-authored-by: James Lamb <jaylamb20@gmail.com>
@jameslamb
jameslamb self-requested a review October 6, 2023 03:35

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

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.

@guolinke guolinke left a comment

Copy link
Copy Markdown
Collaborator

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
@github-actions

github-actions Bot commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

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