Repository: spark Updated Branches: refs/heads/master 588559911 -> 6555ef0cc
[TRIVIAL] Typo Fix ## What changes were proposed in this pull request? Fix a typo ## How was this patch tested? no tests Author: Zheng RuiFeng <[email protected]> Closes #14772 from zhengruifeng/minor_numClasses. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/6555ef0c Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/6555ef0c Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/6555ef0c Branch: refs/heads/master Commit: 6555ef0ccbecd09c3071670e10f0c1e2d7713bfe Parents: 5885599 Author: Zheng RuiFeng <[email protected]> Authored: Tue Aug 23 21:25:04 2016 +0100 Committer: Sean Owen <[email protected]> Committed: Tue Aug 23 21:25:04 2016 +0100 ---------------------------------------------------------------------- .../main/scala/org/apache/spark/ml/classification/Classifier.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/6555ef0c/mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala ---------------------------------------------------------------------- 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 6decea7..d1b21b1 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) } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
