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, ame is true about RandomForestModel.
Why are there two classes? Which is the "right" one? And is there a way to convert one into another?