Skip to content

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

@raphaelvallat

Description

@raphaelvallat

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions