From e9532e1c34513f6cfde9e34f86903c3d18dd6c2f Mon Sep 17 00:00:00 2001 From: Yu ISHIKAWA Date: Mon, 29 Jun 2015 14:08:57 +0900 Subject: [PATCH] make `parentModel` of KMeansModel private --- .../main/scala/org/apache/spark/ml/clustering/KMeans.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala b/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala index 26af05a078bb0..a04e1181a0afe 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala @@ -106,9 +106,8 @@ private[clustering] trait KMeansParams */ @Experimental class KMeansModel private[ml] ( - override val uid: String, - val parentModel: MLlibKMeansModel -) extends Model[KMeansModel] with KMeansParams { + override val uid: String, + private val parentModel: MLlibKMeansModel) extends Model[KMeansModel] with KMeansParams { override def copy(extra: ParamMap): KMeansModel = { val copied = new KMeansModel(uid, parentModel)