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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Nov 17 13:50:27 EST 2014


Author: rcurtin
Date: Mon Nov 17 13:50:27 2014
New Revision: 17375

Log:
Slightly loosen tolerances for NMF tests.


Modified:
   mlpack/trunk/src/mlpack/tests/nmf_test.cpp

Modified: mlpack/trunk/src/mlpack/tests/nmf_test.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/tests/nmf_test.cpp	(original)
+++ mlpack/trunk/src/mlpack/tests/nmf_test.cpp	Mon Nov 17 13:50:27 2014
@@ -38,9 +38,9 @@
 
   mat wh = w * h;
 
-  // Make sure reconstruction error is not too high.  0.5% tolerance.
+  // Make sure reconstruction error is not too high.  1.5% tolerance.
   BOOST_REQUIRE_SMALL(arma::norm(v - wh, "fro") / arma::norm(v, "fro"),
-      0.012);
+      0.015);
 }
 
 /**
@@ -63,7 +63,7 @@
   mat wh = w * h;
 
   BOOST_REQUIRE_SMALL(arma::norm(v - wh, "fro") / arma::norm(v, "fro"),
-      0.012);
+      0.015);
 }
 
 /**
@@ -79,15 +79,15 @@
   size_t r = 12;
 
   AMF<SimpleResidueTermination,
-      RandomInitialization, 
+      RandomInitialization,
       NMFMultiplicativeDivergenceUpdate> nmf;
   nmf.Apply(v, r, w, h);
 
   mat wh = w * h;
 
-  // Make sure reconstruction error is not too high.  0.5% tolerance.
+  // Make sure reconstruction error is not too high.  1.5% tolerance.
   BOOST_REQUIRE_SMALL(arma::norm(v - wh, "fro") / arma::norm(v, "fro"),
-      0.012);
+      0.015);
 }
 
 /**



More information about the mlpack-svn mailing list