[mlpack-svn] r15219 - mlpack/trunk/src/mlpack/tests

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Jun 10 11:27:51 EDT 2013


Author: rcurtin
Date: 2013-06-10 11:27:51 -0400 (Mon, 10 Jun 2013)
New Revision: 15219

Modified:
   mlpack/trunk/src/mlpack/tests/gmm_test.cpp
Log:
Widen tolerances on GMM tests.


Modified: mlpack/trunk/src/mlpack/tests/gmm_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/gmm_test.cpp	2013-06-10 15:18:52 UTC (rev 15218)
+++ mlpack/trunk/src/mlpack/tests/gmm_test.cpp	2013-06-10 15:27:51 UTC (rev 15219)
@@ -422,7 +422,7 @@
   BOOST_REQUIRE_SMALL(g.Weights()[sortedIndices[0]] - 0.1, 0.075);
 
   for (size_t i = 0; i < 3; i++)
-    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[0]][i] - d4.Mean()[i]), 0.30);
+    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[0]][i] - d4.Mean()[i]), 0.35);
 
   for (size_t row = 0; row < 3; row++)
     for (size_t col = 0; col < 3; col++)
@@ -433,7 +433,7 @@
   BOOST_REQUIRE_SMALL(g.Weights()[sortedIndices[1]] - 0.2, 0.075);
 
   for (size_t i = 0; i < 3; i++)
-    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[1]][i] - d1.Mean()[i]), 0.25);
+    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[1]][i] - d1.Mean()[i]), 0.35);
 
   for (size_t row = 0; row < 3; row++)
     for (size_t col = 0; col < 3; col++)
@@ -444,7 +444,7 @@
   BOOST_REQUIRE_SMALL(g.Weights()[sortedIndices[2]] - 0.3, 0.1);
 
   for (size_t i = 0; i < 3; i++)
-    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[2]][i] - d2.Mean()[i]), 0.25);
+    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[2]][i] - d2.Mean()[i]), 0.35);
 
   for (size_t row = 0; row < 3; row++)
     for (size_t col = 0; col < 3; col++)
@@ -455,7 +455,7 @@
   BOOST_REQUIRE_SMALL(g.Weights()[sortedIndices[3]] - 0.4, 0.1);
 
   for (size_t i = 0; i < 3; ++i)
-    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[3]][i] - d3.Mean()[i]), 0.25);
+    BOOST_REQUIRE_SMALL((g.Means()[sortedIndices[3]][i] - d3.Mean()[i]), 0.35);
 
   for (size_t row = 0; row < 3; ++row)
     for (size_t col = 0; col < 3; ++col)




More information about the mlpack-svn mailing list