Repository: spark Updated Branches: refs/heads/master 1a028bdef -> ddf0d1e3f
[TRIVIAL][ML] Fix LogisticRegression typo in error message. ## What changes were proposed in this pull request? Fix ```LogisticRegression``` typo in error message. ## How was this patch tested? Docs change, no new tests. Author: Yanbo Liang <[email protected]> Closes #14633 from yanboliang/lr-typo. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ddf0d1e3 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ddf0d1e3 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ddf0d1e3 Branch: refs/heads/master Commit: ddf0d1e3fe18bcd01e1447feea1b76ce86087b3b Parents: 1a028bd Author: Yanbo Liang <[email protected]> Authored: Mon Aug 15 10:11:29 2016 +0100 Committer: Sean Owen <[email protected]> Committed: Mon Aug 15 10:11:29 2016 +0100 ---------------------------------------------------------------------- .../org/apache/spark/ml/classification/LogisticRegression.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/ddf0d1e3/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala index 90baa41..88d1b45 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala @@ -303,7 +303,7 @@ class LogisticRegression @Since("1.2.0") ( val (coefficients, intercept, objectiveHistory) = { if (numInvalid != 0) { - val msg = s"Classification labels should be in {0 to ${numClasses - 1} " + + val msg = s"Classification labels should be in [0 to ${numClasses - 1}]. " + s"Found $numInvalid invalid labels." logError(msg) throw new SparkException(msg) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
