Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/3833#discussion_r23821630
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/classification/LogisticRegression.scala
---
@@ -205,9 +262,25 @@ class LogisticRegressionWithLBFGS
override val optimizer = new LBFGS(new LogisticGradient, new
SquaredL2Updater)
- override protected val validators =
List(DataValidators.binaryLabelValidator)
+ validators = List(DataValidators.binaryLabelValidator)
--- End diff --
Could we check whether the following works?
~~~
private val multiLabelValidator: (Double) => Boolean = { label =>
(use numClasses from this instance)
}
~~~
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]