Save ML model for future usage

后端 未结 2 673
别那么骄傲
别那么骄傲 2020-11-27 04:30

I was applying some Machine Learning algorithms like Linear Regression, Logistic Regression, and Naive Bayes to some data, but I was trying to avoid using RDDs and start usi

2条回答
  •  [愿得一人]
    2020-11-27 05:07

    It seems as if the API functionality to save a model is not implemented as of today (see Spark issue tracker SPARK-6725).

    An alternative was posted (How to save models from ML Pipeline to S3 or HDFS?) which involves simply serializing the model, but is a Java approach. I expect that in PySpark you could do something similar, i.e. pickle the model to write to disk.

提交回复
热议问题