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.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Susan Li

Susan Li

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

More from Medium

BabySPELL — Everything you need to know

How Do Learners Make Decisions? Behavioral Economics & Learning

A High-Tech Journey in ATL History Center

3 Things To Consider When You Want To Learn And Need To Find Someone To Teach You