I noticed there are two LinearRegressionModel
classes in SparkML, one in ML package (spark.ml
) and another one in MLLib
(spark.mllib
) package.
These two are implemented quite differently - e.g. the one from MLLib
implements Serializable
, while the other one does not.
By the way, the same is true about RandomForestModel
or Word2Vec
.
Why are there two classes? Which is the "right" one? And is there a way to convert one into another?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…