[mlpack-git] master: Use MidpointSplit by default. (148bfca)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu May 7 15:11:01 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/237ab40b5a32dd626a387e8a109771307fe59153...148bfca48cccba1647ffcfacd03e578a493b7265

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

commit 148bfca48cccba1647ffcfacd03e578a493b7265
Author: Ryan Curtin <ryan at ratml.org>
Date:   Thu May 7 15:01:05 2015 -0400

    Use MidpointSplit by default.


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

148bfca48cccba1647ffcfacd03e578a493b7265
 src/mlpack/core/tree/CMakeLists.txt                          | 2 ++
 src/mlpack/core/tree/binary_space_tree.hpp                   | 2 ++
 src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp | 4 ++--
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/core/tree/CMakeLists.txt b/src/mlpack/core/tree/CMakeLists.txt
index 7000b3f..82fd8d9 100644
--- a/src/mlpack/core/tree/CMakeLists.txt
+++ b/src/mlpack/core/tree/CMakeLists.txt
@@ -11,6 +11,8 @@ set(SOURCES
   binary_space_tree/dual_tree_traverser_impl.hpp
   binary_space_tree/mean_split.hpp
   binary_space_tree/mean_split_impl.hpp
+  binary_space_tree/midpoint_split.hpp
+  binary_space_tree/midpoint_split_impl.hpp
   binary_space_tree/single_tree_traverser.hpp
   binary_space_tree/single_tree_traverser_impl.hpp
   binary_space_tree/traits.hpp
diff --git a/src/mlpack/core/tree/binary_space_tree.hpp b/src/mlpack/core/tree/binary_space_tree.hpp
index 91e3eaf..374c335 100644
--- a/src/mlpack/core/tree/binary_space_tree.hpp
+++ b/src/mlpack/core/tree/binary_space_tree.hpp
@@ -16,5 +16,7 @@
 #include "binary_space_tree/breadth_first_dual_tree_traverser.hpp"
 #include "binary_space_tree/breadth_first_dual_tree_traverser_impl.hpp"
 #include "binary_space_tree/traits.hpp"
+#include "binary_space_tree/midpoint_split.hpp"
+#include "binary_space_tree/mean_split.hpp"
 
 #endif
diff --git a/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp b/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
index cbd6da7..caab084 100644
--- a/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
@@ -7,7 +7,7 @@
 #define __MLPACK_CORE_TREE_BINARY_SPACE_TREE_BINARY_SPACE_TREE_HPP
 
 #include <mlpack/core.hpp>
-#include "mean_split.hpp"
+#include "midpoint_split.hpp"
 
 #include "../statistic.hpp"
 
@@ -40,7 +40,7 @@ namespace tree /** Trees and tree-building procedures. */ {
 template<typename BoundType,
          typename StatisticType = EmptyStatistic,
          typename MatType = arma::mat,
-         typename SplitType = MeanSplit<BoundType, MatType> >
+         typename SplitType = MidpointSplit<BoundType, MatType>>
 class BinarySpaceTree
 {
  private:



More information about the mlpack-git mailing list