Skip to content

Commit

Permalink
Revert inadvertent update to KMeans
Browse files Browse the repository at this point in the history
  • Loading branch information
sboeschhuawei committed Jan 25, 2015
1 parent 9294263 commit a2b1e57
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class KMeans private (
}

// Compute squared norms and cache them.
val collected = data.collect()
val norms = data.map(Vectors.norm(_, 2.0))
norms.persist()
val zippedData = data.zip(norms).map { case (v, norm) =>
Expand Down

0 comments on commit a2b1e57

Please sign in to comment.