diff options
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala | 2 |
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) } } |