You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/08/15 09:11:33 UTC

spark git commit: [TRIVIAL][ML] Fix LogisticRegression typo in error message.

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 <yb...@gmail.com>

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 <yb...@gmail.com>
Authored: Mon Aug 15 10:11:29 2016 +0100
Committer: Sean Owen <so...@cloudera.com>
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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org