Skip to content

Commit 6f169eb

Browse files
committed
fix mima test
1 parent 8516a2c commit 6f169eb

File tree

1 file changed

+5
-4
lines changed
  • mllib/src/main/scala/org/apache/spark/ml/clustering

1 file changed

+5
-4
lines changed

mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import org.apache.spark.sql.types.{IntegerType, StructType}
4141
* Params for KMeans
4242
*/
4343

44-
private[clustering] trait KMeansParams extends KMeansModelParams with HasInitialModel[KMeansModel] {
44+
private[clustering] trait KMeansInitialModelParams extends HasInitialModel[KMeansModel] {
4545
/**
4646
* Param for KMeansModel to use for warm start.
4747
* Whenever initialModel is set:
@@ -58,7 +58,7 @@ private[clustering] trait KMeansParams extends KMeansModelParams with HasInitial
5858
/**
5959
* Params for KMeansModel
6060
*/
61-
private[clustering] trait KMeansModelParams extends Params with HasMaxIter with HasFeaturesCol
61+
private[clustering] trait KMeansParams extends Params with HasMaxIter with HasFeaturesCol
6262
with HasSeed with HasPredictionCol with HasTol {
6363

6464
/**
@@ -127,7 +127,7 @@ private[clustering] trait KMeansModelParams extends Params with HasMaxIter with
127127
class KMeansModel private[ml] (
128128
@Since("1.5.0") override val uid: String,
129129
private[ml] val parentModel: MLlibKMeansModel)
130-
extends Model[KMeansModel] with KMeansModelParams with MLWritable {
130+
extends Model[KMeansModel] with KMeansParams with MLWritable {
131131

132132
@Since("1.5.0")
133133
override def copy(extra: ParamMap): KMeansModel = {
@@ -283,7 +283,8 @@ object KMeansModel extends MLReadable[KMeansModel] {
283283
@Experimental
284284
class KMeans @Since("1.5.0") (
285285
@Since("1.5.0") override val uid: String)
286-
extends Estimator[KMeansModel] with KMeansParams with DefaultParamsWritable {
286+
extends Estimator[KMeansModel]
287+
with KMeansParams with KMeansInitialModelParams with DefaultParamsWritable {
287288

288289
setDefault(
289290
k -> 2,

0 commit comments

Comments
 (0)