API
from sklearn.externals import joblib
joblib.dump(estimator,"my_ridge.pkl")#保存模型
estimator = joblib.load("my_ridge.pkl")#加载模型
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 WangZun233!
from sklearn.externals import joblib
joblib.dump(estimator,"my_ridge.pkl")#保存模型
estimator = joblib.load("my_ridge.pkl")#加载模型