save sklearn model to pickle code example
Example: sklearn save model
# save as object
import pickle
s = pickle.dumps(clf)
clf2 = pickle.loads(s)
# save to file
from joblib import dump
dump(clf, 'filename.joblib')
# load from file
from joblib import load
clf = load('filename.joblib')