Susan Li
1 min readApr 26, 2019

--

No, we do not. If you want to save the model and use it later, just do this:

joblib.dump(clf, ‘NB_spam_model.pkl’)

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

clf = joblib.load(NB_spam_model)

--

--

Susan Li

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