Do this:

joblib.dump(model, ‘model.pkl’)

When you need to load it:

model = open(‘model.pkl’,’rb’)

model = joblib.load(model)

Changing the world, one post at a time. Sr Data Scientist, Toronto Canada. https://www.linkedin.com/in/susanli/

Love podcasts or audiobooks? Learn on the go with our new app.