[mlpack] 10/207: Increase the number of points to reduce variance in tests.

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 2cff80924c05eaebaa385bbbfcb7c583db5e939d
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Dec 27 14:20:53 2016 -0500

    Increase the number of points to reduce variance in tests.
---
 src/mlpack/tests/distribution_test.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/tests/distribution_test.cpp b/src/mlpack/tests/distribution_test.cpp
index 4f0953e..ce162a0 100644
--- a/src/mlpack/tests/distribution_test.cpp
+++ b/src/mlpack/tests/distribution_test.cpp
@@ -583,12 +583,13 @@ BOOST_AUTO_TEST_CASE(GammaDistributionTrainTwoDistProbabilities1Test)
  */
 BOOST_AUTO_TEST_CASE(GammaDistributionFittingTest)
 {
+  math::RandomSeed(std::time(NULL));
   // Offset from the actual alpha/beta. 10% is quite a relaxed tolerance since
   // the random points we generate are few (for test speed) and might be fitted
   // better by a similar distribution.
   double errorTolerance = 10;
 
-  size_t N = 500;
+  size_t N = 5000;
   size_t d = 1; // Only 1 dimension is required for this.
 
   /** Iteration 1 (first parameter set) **/

-- 
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