[mlpack-git] master: Fix test number of classes. (a897380)

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


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

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

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

commit a8973807ff53fda03648ece2dc5add08dbad5ae8
Author: ryan <ryan at ratml.org>
Date:   Wed Sep 23 11:33:53 2015 -0400

    Fix test number of classes.


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

a8973807ff53fda03648ece2dc5add08dbad5ae8
 src/mlpack/tests/hoeffding_tree_test.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/tests/hoeffding_tree_test.cpp b/src/mlpack/tests/hoeffding_tree_test.cpp
index cfa9e51..90fd48b 100644
--- a/src/mlpack/tests/hoeffding_tree_test.cpp
+++ b/src/mlpack/tests/hoeffding_tree_test.cpp
@@ -392,9 +392,9 @@ BOOST_AUTO_TEST_CASE(StreamingDecisionTreeSimpleDatasetTest)
   // Now train two streaming decision trees; one on the whole dataset, and one
   // on streaming data.
   StreamingDecisionTree<HoeffdingSplit<>, arma::Mat<size_t>>
-      batchTree(dataset, info, labels, 2);
+      batchTree(dataset, info, labels, 3);
   StreamingDecisionTree<HoeffdingSplit<>, arma::Mat<size_t>>
-      streamTree(info, 3, 2);
+      streamTree(info, 3, 3);
   for (size_t i = 0; i < 9000; ++i)
     streamTree.Train(dataset.col(i), labels[i]);
 



More information about the mlpack-git mailing list