[英]how to re-train Saved linear regression ML model in pyspark when new data is coming
我使用pyspark ml训练了线性回归模型并保存了它。现在我想根据新的数据批重新训练它。
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. 我不这么认为,您可以使用pyspark.ml.regression.GeneralizedLinearRegression进行训练,然后获得一个pyspark.ml.regression.GeneralizedLinearRegressionModel,这就是您保存的内容。 AFIK, the model can't be refitted, you have to use the regression fit again to get a new model.
AFIK,无法重新拟合模型,您必须再次使用回归拟合才能获得新模型。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.