当新数据出现时,如何在pyspark中重新训练保存的线性回归ML模型

时间:2017-07-12 07:15:02

标签: python machine-learning pyspark

我使用 pyspark ml 训练线性回归模型并保存它。现在我想在新的基础上重新训练数据批..可能吗?

1 个答案:

答案 0 :(得分:0)

I don't think so, you use pyspark.ml.regression.GeneralizedLinearRegression to train, and then you get a pyspark.ml.regression.GeneralizedLinearRegressionModel, that is what you have saved. AFIK, the model can't be refitted, you have to use the regression fit again to get a new model.