[mlpack-git] master: Fix compilation issue. (28f45c6)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 11:43:21 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/de9cc4b05069e1fa4793d9355f2f595af5ff45d2...6070527af14296cd99739de6c62666cc5d2a2125
>---------------------------------------------------------------
commit 28f45c6fc616d22b9b597da2b8f1fe27cd9b7af9
Author: ryan <ryan at ratml.org>
Date: Thu Oct 1 14:19:08 2015 -0400
Fix compilation issue.
>---------------------------------------------------------------
28f45c6fc616d22b9b597da2b8f1fe27cd9b7af9
src/mlpack/methods/hoeffding_trees/hoeffding_split_impl.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/methods/hoeffding_trees/hoeffding_split_impl.hpp b/src/mlpack/methods/hoeffding_trees/hoeffding_split_impl.hpp
index 69ed643..da73f26 100644
--- a/src/mlpack/methods/hoeffding_trees/hoeffding_split_impl.hpp
+++ b/src/mlpack/methods/hoeffding_trees/hoeffding_split_impl.hpp
@@ -341,8 +341,8 @@ void HoeffdingSplit<
{
// Clear things we don't need.
majorityClass = 0;
- categoricalSplit = CategoricalSplitType::SplitInfo();
- numericSplit = NumericSplitType::SplitInfo();
+ categoricalSplit = typename CategoricalSplitType::SplitInfo(numClasses);
+ numericSplit = typename NumericSplitType::SplitInfo();
}
}
else
More information about the mlpack-git
mailing list