sberbank-ai-lab / LightAutoML

LAMA - automatic model creation framework
Apache License 2.0
887 stars 92 forks source link

Inquiring about model saving feature #37

Closed bamblebam closed 3 years ago

bamblebam commented 3 years ago

So I just trained a model on some tabular data using TabularUtilizedAutoML and wanted to save the model. But I couldn't find anything related to saving the best trained model.
Just wanted to know if there is a functionality to do so ?

alexmryzhkov commented 3 years ago

Hi @bamblebam,

The best trained model is already inside automl object, which you can use to do prediction for the test data.

If you want to save the the model, you can use joblib library: joblib.dump(automl, 'trained_lightautoml_model.pkl') To load the model the code automl = joblib.load('trained_lightautoml_model.pkl') can be used.

Hope this helps.

Alex

bamblebam commented 3 years ago

Thank You for replying.