[mlpack-git] master: Add another test for the numeric feature splitting. (8d51657)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 11:42:54 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/de9cc4b05069e1fa4793d9355f2f595af5ff45d2...6070527af14296cd99739de6c62666cc5d2a2125

>---------------------------------------------------------------

commit 8d516579a4feddb07e6063961146e032465ebd23
Author: ryan <ryan at ratml.org>
Date:   Tue Sep 29 11:11:00 2015 -0400

    Add another test for the numeric feature splitting.


>---------------------------------------------------------------

8d516579a4feddb07e6063961146e032465ebd23
 src/mlpack/tests/hoeffding_tree_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/tests/hoeffding_tree_test.cpp b/src/mlpack/tests/hoeffding_tree_test.cpp
index eb9a361..8ad9b40 100644
--- a/src/mlpack/tests/hoeffding_tree_test.cpp
+++ b/src/mlpack/tests/hoeffding_tree_test.cpp
@@ -505,7 +505,7 @@ BOOST_AUTO_TEST_CASE(HoeffdingNumericSplitBimodalTest)
 
   // Now the binning should be complete, and so the impurity should be
   // (0.5 * (1 - 0.5)) * 2 = 0.50 (it will be 0 in the two created children).
-  BOOST_REQUIRE_CLOSE(split.EvaluateFitnessFunction(), 0.50, 0.01);
+  BOOST_REQUIRE_CLOSE(split.EvaluateFitnessFunction(), 0.50, 0.03);
 
   // Make sure that if we do create children, that the correct number of
   // children is created, and that the bins end up in the right place.



More information about the mlpack-git mailing list