Skip to content

Load saved model #268

Answered by Shashi9503
Shashi9503 asked this question in Q&A
Nov 1, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can use pickle.load() to load the automl instance you saved and then predict without fitting again.

Code example assuming your model is dumped into file 'automl.pkl' and test data is X_test:

automl = pickle.load(open('automl.pkl', 'rb'))
y_pred = automl.predict(X_test)

#228 (reply in thread)

Replies: 1 comment 1 reply

Comment options

Shashi9503
Nov 2, 2021
Collaborator Author

You must be logged in to vote
1 reply
@Shashi9503
Comment options

Shashi9503 Nov 2, 2021
Collaborator Author

Answer selected by Shashi9503
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant