Skip to content

Commit

Permalink
Removed redundant array from array creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaloppo committed Dec 18, 2014
1 parent 578c2d1 commit 1de73f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GaussianMixtureModel(
new MultivariateGaussian(mu(i).toBreeze.toDenseVector, sigma(i).toBreeze.toDenseMatrix)
}.toArray
}
val weights = sc.broadcast((0 until k).map(i => weight(i)).toArray)
val weights = sc.broadcast(weight)
points.map{ x =>
computeSoftAssignments(x.toBreeze.toDenseVector, dists.value, weights.value, k)
}
Expand Down

0 comments on commit 1de73f3

Please sign in to comment.