[mlpack] 98/149: Slightly loosen tolerances for NMF tests.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Sat May 2 09:11:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 366efa362eeb161aaf4dc91dbb4991954be99377
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Mon Nov 17 18:50:27 2014 +0000
Slightly loosen tolerances for NMF tests.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17375 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/tests/nmf_test.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mlpack/tests/nmf_test.cpp b/src/mlpack/tests/nmf_test.cpp
index 5a66b8e..18dae2e 100644
--- a/src/mlpack/tests/nmf_test.cpp
+++ b/src/mlpack/tests/nmf_test.cpp
@@ -38,9 +38,9 @@ BOOST_AUTO_TEST_CASE(NMFDefaultTest)
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 @@ BOOST_AUTO_TEST_CASE(NMFAcolDistTest)
mat wh = w * h;
BOOST_REQUIRE_SMALL(arma::norm(v - wh, "fro") / arma::norm(v, "fro"),
- 0.012);
+ 0.015);
}
/**
@@ -79,15 +79,15 @@ BOOST_AUTO_TEST_CASE(NMFRandomDivTest)
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);
}
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list