Skip to content

Commit 07f8554

Browse files
committed
remove setRuns from setIntialModel
1 parent e721dfe commit 07f8554

File tree

1 file changed

+0
-1
lines changed
  • mllib/src/main/scala/org/apache/spark/mllib/clustering

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ class KMeans private (
167167
*/
168168
def setInitialModel(model: KMeansModel): this.type = {
169169
require(model.k == k, "mismatched cluster count")
170-
this.setRuns(1)
171170
logWarning("Ignoring runs; one run is allowed when initialModel is given.")
172171
initialModel = Some(model)
173172
this

0 commit comments

Comments
 (0)