[mlpack-svn] r10590 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Dec 6 13:53:46 EST 2011
Author: rcurtin
Date: 2011-12-06 13:53:46 -0500 (Tue, 06 Dec 2011)
New Revision: 10590
Modified:
mlpack/trunk/src/mlpack/tests/gmm_test.cpp
Log:
Don't use srand() in test cases.
Modified: mlpack/trunk/src/mlpack/tests/gmm_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/gmm_test.cpp 2011-12-06 18:53:29 UTC (rev 10589)
+++ mlpack/trunk/src/mlpack/tests/gmm_test.cpp 2011-12-06 18:53:46 UTC (rev 10590)
@@ -302,8 +302,6 @@
*/
BOOST_AUTO_TEST_CASE(GMMTrainEMMultipleGaussiansWithProbability)
{
- srand(time(NULL));
-
// We'll have three Gaussian distributions from this mixture, and one Gaussian
// not from this mixture (but we'll put some observations from it in).
distribution::GaussianDistribution d1("0.0 1.0 0.0", "1.0 0.0 0.5;"
@@ -403,8 +401,6 @@
*/
BOOST_AUTO_TEST_CASE(GMMRandomTest)
{
- srand(time(NULL));
-
// Simple GMM distribution.
GMM gmm(2, 2);
gmm.Weights() = arma::vec("0.40 0.60");
More information about the mlpack-svn
mailing list