-
- Downloads
[SPARK-19142][SPARKR] spark.kmeans should take seed, initSteps, and tol as parameters
## What changes were proposed in this pull request? spark.kmeans doesn't have interface to set initSteps, seed and tol. As Spark Kmeans algorithm doesn't take the same set of parameters as R kmeans, we should maintain a different interface in spark.kmeans. Add missing parameters and corresponding document. Modified existing unit tests to take additional parameters. Author: wm624@hotmail.com <wm624@hotmail.com> Closes #16523 from wangmiao1981/kmeans.
Showing
- R/pkg/R/mllib_clustering.R 11 additions, 2 deletionsR/pkg/R/mllib_clustering.R
- R/pkg/inst/tests/testthat/test_mllib_clustering.R 20 additions, 0 deletionsR/pkg/inst/tests/testthat/test_mllib_clustering.R
- mllib/src/main/scala/org/apache/spark/ml/r/KMeansWrapper.scala 8 additions, 1 deletion.../src/main/scala/org/apache/spark/ml/r/KMeansWrapper.scala
Please register or sign in to comment