在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
。
想用LogisticRegressionWithSGD
做多分类任务,但是org.apache.spark.mllib.classification.LogisticRegressionWithSGD
中没有setNumClasses
方法。我知道LogisticRegressionWithLBFGS
可以做多个分类任务,但为什么LogisticRegressionWithSGD
不能?
不支持使用 LogisticRegressionWithSGD()
的多类分类,尽管这是一项要求的功能:https://issues.apache.org/jira/browse/SPARK-10179。决定不添加此功能,因为 SparkML
将成为 Spark 未来的主要机器学习 API,而不是 Spark Mllib
。