Last active
November 5, 2022 16:15
-
-
Save erdogant/0bf442fc9ae0817d2fed3cbb7b07f9eb to your computer and use it in GitHub Desktop.
hgboost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Save model | |
| status = hgb.save(filepath='hgboost_model.pkl', overwrite=True) | |
| # [pypickle] Pickle file saved: [hgboost_model.pkl] | |
| # [hgboost] >Saving.. True | |
| # Load model | |
| From hgboost import hgboost # Import library when using a fresh start | |
| hgb = hgboost() # Initialize hgboost | |
| results = hgb.load(filepath='hgboost_model.pkl') # Load the pickle file with model parameters and trained model. | |
| # [pypickle] Pickle file loaded: [hgboost_model.pkl] | |
| # [hgboost] >Loading succesful! | |
| # Make predictions again | |
| y_pred, y_proba = hgb.predict(X) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment