加载您想要得分的数据。数据以libsvm格式以下列方式存储: label index1:value2 1 index2:value2 2.val scores_path = results_base + run_id + "/" + "-scores" val lrm = LogisticRegressionModel.loadHere is the metadate for that model LogisticRegre
在Spark (基于关系数据挖掘的应用程序接口)中,有一个用于增量训练MLlib回归模型的StreamingLogisticRegressionWithSGD。在Spark ML (基于DataFrame的API)中,我只找到了LogisticRegression类,只有用于批量训练的fit方法。这不允许模型保存、重新加载和增量训练的模式。Spark有什么可用的解决方案吗?
我需要集成一个简单的模型,例如org.apache.spark.ml.classification.LogisticRegression,,而不是以前训练过的org.apache.spark.ml.PipelineModelprivate def pipelineBefore: org.apache.spark.sql.DataFrame = { (0L, "a b c d e spark</e