tvdboom / ATOM

Automated Tool for Optimized Modelling
https://tvdboom.github.io/ATOM/
MIT License
148 stars 14 forks source link

How to save the LightGBM Regressor trained using ATOM Pipeline to get prediction intervals using MAPIE #46

Open ashish-wai opened 7 months ago

ashish-wai commented 7 months ago

Contribution guidelines

Description

Hi, I read that we can use joblib to dump the entire pipeline created using ATOM-ML in an existing issue. How can I save only the trained model (XGB or LGB) to use MAPIE to get a prediction interval for regression rather than a single-point prediction?

https://mapie.readthedocs.io/en/latest/, or other libraries for other tasks (like explainability, etc).

Use Cases

Screenshots / Mockups

No response

tvdboom commented 7 months ago

You can use the save_estimator method of the LightGBM model, e.g., atom.lgb.save_estimator("lightgbm")