[mlpack-git] master: Fix tests for changed APIs. (dfba0d5)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 11:46:03 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/de9cc4b05069e1fa4793d9355f2f595af5ff45d2...6070527af14296cd99739de6c62666cc5d2a2125
>---------------------------------------------------------------
commit dfba0d567651b539c82b9cef42dc22b955070758
Author: Ryan Curtin <ryan at ratml.org>
Date: Thu Nov 5 14:34:34 2015 -0800
Fix tests for changed APIs.
>---------------------------------------------------------------
dfba0d567651b539c82b9cef42dc22b955070758
src/mlpack/tests/hoeffding_tree_test.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/mlpack/tests/hoeffding_tree_test.cpp b/src/mlpack/tests/hoeffding_tree_test.cpp
index cd443e5..72516a1 100644
--- a/src/mlpack/tests/hoeffding_tree_test.cpp
+++ b/src/mlpack/tests/hoeffding_tree_test.cpp
@@ -427,7 +427,7 @@ BOOST_AUTO_TEST_CASE(HoeffdingTreeSimpleDatasetTest)
typedef HoeffdingTree<GiniImpurity, HoeffdingSizeTNumericSplit,
HoeffdingCategoricalSplit> TreeType;
TreeType batchTree(dataset, info, labels, 3, false);
- TreeType streamTree(info, 3, 3);
+ TreeType streamTree(info, 3);
for (size_t i = 0; i < 9000; ++i)
streamTree.Train(dataset.col(i), labels[i]);
@@ -550,7 +550,7 @@ BOOST_AUTO_TEST_CASE(BinaryNumericSplitSimpleSplitTest)
// Now, when we ask it to split, ensure that the split value is reasonable.
arma::Col<size_t> childMajorities;
- NumericSplitInfo<> splitInfo;
+ BinaryNumericSplitInfo<> splitInfo;
split.Split(childMajorities, splitInfo);
BOOST_REQUIRE_EQUAL(childMajorities[0], 0);
@@ -587,7 +587,7 @@ BOOST_AUTO_TEST_CASE(BinaryNumericSplitSimpleFourClassSplitTest)
// Now, when we ask it to split, ensure that the split value is reasonable.
arma::Col<size_t> childMajorities;
- NumericSplitInfo<> splitInfo;
+ BinaryNumericSplitInfo<> splitInfo;
split.Split(childMajorities, splitInfo);
// We don't really care where it splits -- it can split anywhere. But it has
@@ -627,7 +627,7 @@ BOOST_AUTO_TEST_CASE(NumericHoeffdingTreeTest)
// on streaming data.
typedef HoeffdingTree<GiniImpurity, HoeffdingDoubleNumericSplit> TreeType;
TreeType batchTree(dataset, info, labels, 3, false);
- TreeType streamTree(info, 3, 3);
+ TreeType streamTree(info, 3);
for (size_t i = 0; i < 9000; ++i)
streamTree.Train(dataset.col(i), labels[i]);
@@ -696,7 +696,7 @@ BOOST_AUTO_TEST_CASE(BinaryNumericHoeffdingTreeTest)
// on streaming data.
typedef HoeffdingTree<GiniImpurity, BinaryDoubleNumericSplit> TreeType;
TreeType batchTree(dataset, info, labels, 3, false);
- TreeType streamTree(info, 4, 3);
+ TreeType streamTree(info, 3);
for (size_t i = 0; i < 9000; ++i)
streamTree.Train(dataset.col(i), labels[i]);
More information about the mlpack-git
mailing list