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

Save (more) persistent LightGBM trained classifiers for sleep staging #189

Open
raphaelvallat opened this issue Dec 22, 2024 · 0 comments
Open
Assignees

Comments

@raphaelvallat
Copy link
Owner

raphaelvallat commented Dec 22, 2024

Related to #157

To avoid issues with model persistence in joblib/pickle, we could export the LightGBM Booster as .txt file with:

clf.save_model('lgbm_model.clf')
clf = lgb.Booster(model_file='lgbm_model.clf')

See also: https://muttoni.github.io/blog/machine-learning/2021/01/22/Fixing-Inconsistent-LightGBM-Predictions-In-Production.html#exporting-using-lightgbms-save_model

@raphaelvallat raphaelvallat self-assigned this Dec 22, 2024
@raphaelvallat raphaelvallat changed the title Save persistent LightGBM model Save (more) persistent LightGBM trained classifiers for sleep staging Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant