aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorZheng RuiFeng <ruifengz@foxmail.com>2016-08-23 21:25:04 +0100
committerSean Owen <sowen@cloudera.com>2016-08-23 21:25:04 +0100
commit6555ef0ccbecd09c3071670e10f0c1e2d7713bfe (patch)
treef30ab7764b27ed421e58407dc42d4d4db6a7b82d /mllib
parent588559911de94bbe0932526ee1e1dd36a581a423 (diff)
downloadspark-6555ef0ccbecd09c3071670e10f0c1e2d7713bfe.tar.gz
spark-6555ef0ccbecd09c3071670e10f0c1e2d7713bfe.tar.bz2
spark-6555ef0ccbecd09c3071670e10f0c1e2d7713bfe.zip
[TRIVIAL] Typo Fix
## What changes were proposed in this pull request? Fix a typo ## How was this patch tested? no tests Author: Zheng RuiFeng <ruifengz@foxmail.com> Closes #14772 from zhengruifeng/minor_numClasses.
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala
index 6decea7271..d1b21b16f2 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala
@@ -83,7 +83,7 @@ abstract class Classifier[
case Row(label: Double, features: Vector) =>
require(label % 1 == 0 && label >= 0 && label < numClasses, s"Classifier was given" +
s" dataset with invalid label $label. Labels must be integers in range" +
- s" [0, 1, ..., $numClasses), where numClasses=$numClasses.")
+ s" [0, $numClasses).")
LabeledPoint(label, features)
}
}