0
使用基於星火RDD API(mllib包)1.5.2我已經訓練機器學習模型說 「Mymodel123」,如何將ML模型轉換爲MLlib模型?
org.apache.spark.mllib.tree.model.RandomForestModel Mymodel123 = ....;
Mymodel123.save("sparkcontext","path");
現在我使用的Spark數據集基於API(ML封裝)2.2.0。有沒有辦法使用基於數據集的API加載模型(Mymodel123)?
org.apache.spark.ml.classification.RandomForestClassificationModel newModel = org.apache.spark.ml.classification.RandomForestClassificationModel.load("sparkcontext","path");