import pickle
import pydoop.hdfs as hdfs
with hdfs.open(to_path, 'w') as f:
pickle.dump(prediction_model, f)
import pydoop.hdfs as hdfs
model = model
pickle保存模型到hdfs
于 2021-07-01 19:42:43 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import pickle
import pydoop.hdfs as hdfs
with hdfs.open(to_path, 'w') as f:
pickle.dump(prediction_model, f)
import pydoop.hdfs as hdfs
model = model