📜  保存模型泡菜 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.276000             🧑  作者: Mango

代码示例3
with open('model_pkl', 'wb') as files:
    pickle.dump(model, files)
with open('model_pkl' , 'rb') as f:
    lr = pickle.load(f)