Horje
save and load sklearn model PKL Code Example
save and load sklearn model PKL
model.fit(X_train, Y_train)
# save the model to disk
filename = 'finalized_model.sav'
pickle.dump(model, open(filename, 'wb'))
 
# load the model from disk
loaded_model = pickle.load(open(filename, 'rb'))
result = loaded_model.score(X_test, Y_test)




Python

Related
if type is string python Code Example if type is string python Code Example
django form password field Code Example django form password field Code Example
open choose files from file explorer python Code Example open choose files from file explorer python Code Example
python range for float Code Example python range for float Code Example
numpy array with random numbers Code Example numpy array with random numbers Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7