-
- Downloads
[SPARK-5015] [mllib] Random seed for GMM + make test suite deterministic
Issues: * From JIRA: GaussianMixtureEM uses randomness but does not take a random seed. It should take one as a parameter. * This also makes the test suite flaky since initialization can fail due to stochasticity. Fix: * Add random seed * Use it in test suite CC: mengxr tgaloppo Author: Joseph K. Bradley <joseph@databricks.com> Closes #3981 from jkbradley/gmm-seed and squashes the following commits: f0df4fd [Joseph K. Bradley] Added seed parameter to GMM. Updated test suite to use seed to prevent flakiness
Showing
- mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureEM.scala 19 additions, 7 deletions...org/apache/spark/mllib/clustering/GaussianMixtureEM.scala
- mllib/src/test/scala/org/apache/spark/mllib/clustering/GMMExpectationMaximizationSuite.scala 8 additions, 6 deletions...rk/mllib/clustering/GMMExpectationMaximizationSuite.scala
Please register or sign in to comment