from sklearn.externals import joblib
joblib.dump(my_model, "model.pkl")
# ...
my_model_loaded = joblib.load("my_model.pkl")
保存和导出训练模型 | joblib 模块
最新推荐文章于 2024-07-08 15:16:24 发布
from sklearn.externals import joblib
joblib.dump(my_model, "model.pkl")
# ...
my_model_loaded = joblib.load("my_model.pkl")