without haste but without rest
14. Deployment - pickle 본문
0. 개요
pickle type으로 모델을 저장한다 -> deployment
## Deployment ##
### Store Model for Later with Pickle ###
# import module
import pickle
# save the pipeline model to disk
pickle.dump(model, open('./model.pkl', 'wb'))
# load the pipeline model from disk and deserialize
model_load = pickle.load(open('./model.pkl', 'rb'))
# use the loaded pipeline model to predict on new data
y_pred = model_load.predict(X_test)
'Homework > DataMining' 카테고리의 다른 글
13. Cross validation & Pipeline (0) | 2020.06.21 |
---|---|
12. Decision Tree (0) | 2020.06.09 |
11. Logistic regression - deep learning (0) | 2020.06.02 |
10. OLS, SGD (0) | 2020.05.26 |
09. Clustering - dbscan, spectal (0) | 2020.05.19 |
Comments