Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

save ml model using joblib

import joblib
# save the model to disk
filename = 'finalized_model.sav'
joblib.dump(model, filename)
 
# some time later...
 
# load the model from disk
loaded_model = joblib.load(filename)
result = loaded_model.score(X_test, Y_test)
print(result)
 
PREVIOUS NEXT
Tagged: #save #ml #model #joblib
ADD COMMENT
Topic
Name
8+1 =