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

Load initial scores with binary data files in CLI version #4807

Merged
merged 2 commits into from
Mar 26, 2022

Conversation

shiyu1994
Copy link
Collaborator

This is to fix #4786. Currently there's no way to load initial score when loading from binary data file in CLI version.

In Metadata::LoadFromMemory and Metadata::SaveBinaryToFile, other fields of Metadata is handled, except init_score_. The only way to set initial score when loading from binary data files is the call methods like set_init_score in Python, which is impossible for CLI version.

The implementation goes like this: after loading from binary data files, checks whether there are initial score files exists. If so, initial scores are loaded.

The corresponding documentation for continual training is also updated.

@shiyu1994 shiyu1994 changed the title Load initial scores when use binary data files in CLI version Load initial scores with binary data files in CLI version Nov 17, 2021
@StrikerRUS
Copy link
Collaborator

@guolinke Could you please help to review this PR?

@StrikerRUS StrikerRUS merged commit 17d4e00 into microsoft:master Mar 26, 2022
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
40 tasks
@github-actions
Copy link

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 Aug 23, 2023
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.

Initializing both the models and bin data file retrains the model, instead of continuing training.
3 participants