aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorYanbo Liang <ybliang8@gmail.com>2016-08-15 10:11:29 +0100
committerSean Owen <sowen@cloudera.com>2016-08-15 10:11:29 +0100
commitddf0d1e3fe18bcd01e1447feea1b76ce86087b3b (patch)
treebe55893f3e86b271925a41c12cf6875a24a0a3c9 /mllib
parent1a028bdefa6312bf0eec46b89a1947da7e9d84af (diff)
downloadspark-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')
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala2
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)