Repository: spark
Updated Branches:
  refs/heads/master fb0db7724 -> 220f41368


[SPARK-2495][MLLIB] make KMeans constructor public

to re-construct k-means models freeman-lab

Author: Xiangrui Meng <m...@databricks.com>

Closes #2112 from mengxr/public-constructors and squashes the following commits:

18d53a9 [Xiangrui Meng] make KMeans constructor public


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/220f4136
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/220f4136
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/220f4136

Branch: refs/heads/master
Commit: 220f413686ae922bd11776576bf37610cce92c23
Parents: fb0db77
Author: Xiangrui Meng <m...@databricks.com>
Authored: Mon Aug 25 12:30:02 2014 -0700
Committer: Xiangrui Meng <m...@databricks.com>
Committed: Mon Aug 25 12:30:02 2014 -0700

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/220f4136/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala
----------------------------------------------------------------------
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 5823cb6..12a3d91 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to