Skip to content

Commit 8c988c6

Browse files
committed
[SPARK-7946] DecayFactor wrongly set in StreamingKMeans
1 parent b463e6d commit 8c988c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class StreamingKMeans(
178178

179179
/** Set the decay factor directly (for forgetful algorithms). */
180180
def setDecayFactor(a: Double): this.type = {
181-
this.decayFactor = decayFactor
181+
this.decayFactor = a
182182
this
183183
}
184184

0 commit comments

Comments
 (0)