Why can't I load a PySpark RandomForestClassifier model?

只谈情不闲聊 提交于 2019-12-06 00:31:52

Saving the model to HDFS, and later reading the model from HDFS might solve your problem.

You have 4 nodes, each node has its own local-disk. You are using model.write().save("/temp/xxx")

Later, in a separate program: You are using load("/temp/xxx")

Since there are 4 nodes, with 4 different local disks, it isn't clear to me what exactly is being saved (and to which local-disk) during the write.save() operation, and what exactly is being load() and from which local-disk.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!