Skip to content

Commit

Permalink
Make StreamingKMeans 'Serializable'
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Apr 19, 2015
1 parent 0424da6 commit 67c2a14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class StreamingKMeansModel(
class StreamingKMeans(
var k: Int,
var decayFactor: Double,
var timeUnit: String) extends Logging {
var timeUnit: String) extends Logging with Serializable {

def this() = this(2, 1.0, StreamingKMeans.BATCHES)

Expand Down

0 comments on commit 67c2a14

Please sign in to comment.