在spark mllib中,LogisticRegressionWithSGD可以做多个分类任务吗?

In spark mllib, can LogisticRegressionWithSGD do multiple classification tasks?

想用LogisticRegressionWithSGD做多分类任务,但是org.apache.spark.mllib.classification.LogisticRegressionWithSGD中没有setNumClasses方法。我知道LogisticRegressionWithLBFGS可以做多个分类任务,但为什么LogisticRegressionWithSGD不能?

不支持使用 LogisticRegressionWithSGD() 的多类分类,尽管这是一项要求的功能:https://issues.apache.org/jira/browse/SPARK-10179。决定不添加此功能,因为 SparkML 将成为 Spark 未来的主要机器学习 API,而不是 Spark Mllib