Skip to content

Commit

Permalink
Add test for covariance matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
MechCoder committed Feb 10, 2015
1 parent 5cb370b commit e579041
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class GaussianMixtureSuite extends FunSuite with MLlibTestSparkContext {
val gmm = new GaussianMixture().setK(1).setSeed(seed).run(data)
assert(gmm.weights(0) ~== Ew absTol 1E-5)
assert(gmm.gaussians(0).mu ~== Emu absTol 1E-5)
assert(gmm.gaussians(0).sigma ~== Esigma absTol 1E-5)
}
}

Expand Down

0 comments on commit e579041

Please sign in to comment.