diff options
author | Yanbo Liang <ybliang8@gmail.com> | 2016-08-15 10:11:29 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-08-15 10:11:29 +0100 |
commit | ddf0d1e3fe18bcd01e1447feea1b76ce86087b3b (patch) | |
tree | be55893f3e86b271925a41c12cf6875a24a0a3c9 /mllib/src/main | |
parent | 1a028bdefa6312bf0eec46b89a1947da7e9d84af (diff) | |
download | spark-ddf0d1e3fe18bcd01e1447feea1b76ce86087b3b.tar.gz spark-ddf0d1e3fe18bcd01e1447feea1b76ce86087b3b.tar.bz2 spark-ddf0d1e3fe18bcd01e1447feea1b76ce86087b3b.zip |
[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 <ybliang8@gmail.com>
Closes #14633 from yanboliang/lr-typo.
Diffstat (limited to 'mllib/src/main')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 90baa41918..88d1b4575f 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) |