Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: pydotprint 
Python :: python pandas how to load csv file 
Python :: pandas count rows with value 
Python :: open mat file in python 
Python :: python read text file 
Python :: select only object columns pandas 
Python :: how plot graph by using group by function in python 
Python :: how to write a font in pygame 
Python :: streamlit button to load a file 
Python :: Running setup.py bdist_wheel for opencv-python: still running... 
Python :: virtual env in python 
Python :: triangle pattern in python 
Python :: max int value in python 
Python :: how to create an empty 2d list in python 
Python :: set_interval() 
Python :: dataframe x y to geodataframe 
Python :: what is actually better duracell or energizer 
Python :: how to print for loop in same line in python 
Python :: python calculate prime numbers until numer 
Python :: number of total words in cell pandas 
Python :: kaaba python tutorial 
Python :: find common words in two lists python 
Python :: face detection 
Python :: Appending pandas dataframes generated in a for loop 
Python :: drawkeypoints cv2 
Python :: remove substring python 
Python :: take two numbers as inout in single line in python 
Python :: program to find even numbers in python 
Python :: cv2 add circle to image 
Python :: django populate choice field from database 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =