aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorXiangrui Meng <meng@databricks.com>2014-08-25 12:30:02 -0700
committerXiangrui Meng <meng@databricks.com>2014-08-25 12:30:02 -0700
commit220f413686ae922bd11776576bf37610cce92c23 (patch)
tree64a51bd973dbd71d4d1d98701948b60276d459c3 /mllib
parentfb0db772421b6902b80137bf769db3b418ab2ccf (diff)
downloadspark-220f413686ae922bd11776576bf37610cce92c23.tar.gz
spark-220f413686ae922bd11776576bf37610cce92c23.tar.bz2
spark-220f413686ae922bd11776576bf37610cce92c23.zip
[SPARK-2495][MLLIB] make KMeans constructor public
to re-construct k-means models freeman-lab Author: Xiangrui Meng <meng@databricks.com> Closes #2112 from mengxr/public-constructors and squashes the following commits: 18d53a9 [Xiangrui Meng] make KMeans constructor public
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala b/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala
index 5823cb6e52..12a3d91cd3 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala
@@ -25,7 +25,7 @@ import org.apache.spark.mllib.linalg.Vector
/**
* A clustering model for K-means. Each point belongs to the cluster with the closest center.
*/
-class KMeansModel private[mllib] (val clusterCenters: Array[Vector]) extends Serializable {
+class KMeansModel (val clusterCenters: Array[Vector]) extends Serializable {
/** Total number of clusters. */
def k: Int = clusterCenters.length