Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

save model python

import pickle
# To save
pickle.dump(model, "model.p")
# To load again
with open('model.p', 'r') as fp:
    model = pickle.load(fp)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #model #python
ADD COMMENT
Topic
Name
8+2 =