[mlpack-svn] r14963 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Apr 26 11:53:16 EDT 2013
Author: rcurtin
Date: 2013-04-26 11:53:16 -0400 (Fri, 26 Apr 2013)
New Revision: 14963
Modified:
mlpack/trunk/src/mlpack/tests/hmm_test.cpp
mlpack/trunk/src/mlpack/tests/nmf_test.cpp
Log:
Widen tolerances on tests that seem to be failing often.
Modified: mlpack/trunk/src/mlpack/tests/hmm_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/hmm_test.cpp 2013-04-25 21:51:26 UTC (rev 14962)
+++ mlpack/trunk/src/mlpack/tests/hmm_test.cpp 2013-04-26 15:53:16 UTC (rev 14963)
@@ -715,19 +715,19 @@
{
// Check that the mean is the same.
BOOST_REQUIRE_SMALL(hmm.Emission()[em].Mean()(0) -
- hmm2.Emission()[em].Mean()(0), 0.07);
+ hmm2.Emission()[em].Mean()(0), 0.09);
BOOST_REQUIRE_SMALL(hmm.Emission()[em].Mean()(1) -
- hmm2.Emission()[em].Mean()(1), 0.07);
+ hmm2.Emission()[em].Mean()(1), 0.09);
// Check that the covariances are the same.
BOOST_REQUIRE_SMALL(hmm.Emission()[em].Covariance()(0, 0) -
- hmm2.Emission()[em].Covariance()(0, 0), 0.1);
+ hmm2.Emission()[em].Covariance()(0, 0), 0.2);
BOOST_REQUIRE_SMALL(hmm.Emission()[em].Covariance()(0, 1) -
- hmm2.Emission()[em].Covariance()(0, 1), 0.1);
+ hmm2.Emission()[em].Covariance()(0, 1), 0.2);
BOOST_REQUIRE_SMALL(hmm.Emission()[em].Covariance()(1, 0) -
- hmm2.Emission()[em].Covariance()(1, 0), 0.1);
+ hmm2.Emission()[em].Covariance()(1, 0), 0.2);
BOOST_REQUIRE_SMALL(hmm.Emission()[em].Covariance()(1, 1) -
- hmm2.Emission()[em].Covariance()(1, 1), 0.1);
+ hmm2.Emission()[em].Covariance()(1, 1), 0.2);
}
}
Modified: mlpack/trunk/src/mlpack/tests/nmf_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/nmf_test.cpp 2013-04-25 21:51:26 UTC (rev 14962)
+++ mlpack/trunk/src/mlpack/tests/nmf_test.cpp 2013-04-26 15:53:16 UTC (rev 14963)
@@ -86,8 +86,9 @@
}
/**
- * Check the if the product of the calculated factorization is close to the
- * input matrix. Random Initialization Alternating Least Squares Update
+ * Check that the product of the calculated factorization is close to the
+ * input matrix. This uses the random initialization and alternating least
+ * squares update rule.
*/
BOOST_AUTO_TEST_CASE(NMFALSTest)
{
@@ -105,7 +106,7 @@
for (size_t row = 0; row < 5; row++)
for (size_t col = 0; col < 5; col++)
- BOOST_REQUIRE_CLOSE(v(row, col), wh(row, col), 10.0);
+ BOOST_REQUIRE_CLOSE(v(row, col), wh(row, col), 12.0);
}
BOOST_AUTO_TEST_SUITE_END();
More information about the mlpack-svn
mailing list