-
- Downloads
[SPARK-15610][ML] update error message for k in pca
## What changes were proposed in this pull request? Fix the wrong bound of `k` in `PCA` `require(k <= sources.first().size, ...` -> `require(k < sources.first().size` BTW, remove unused import in `ml.ElementwiseProduct` ## How was this patch tested? manual tests Author: Zheng RuiFeng <ruifengz@foxmail.com> Closes #13356 from zhengruifeng/fix_pca.
Showing
- mllib/src/main/scala/org/apache/spark/ml/feature/ElementwiseProduct.scala 0 additions, 1 deletion...cala/org/apache/spark/ml/feature/ElementwiseProduct.scala
- mllib/src/main/scala/org/apache/spark/mllib/feature/PCA.scala 3 additions, 3 deletions...b/src/main/scala/org/apache/spark/mllib/feature/PCA.scala
Please register or sign in to comment