[mlpack-git] master: Add numeric split info. (c5a27c2)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 11:42:34 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/de9cc4b05069e1fa4793d9355f2f595af5ff45d2...6070527af14296cd99739de6c62666cc5d2a2125
>---------------------------------------------------------------
commit c5a27c24a07ee6e44af73540976bf018270a937a
Author: ryan <ryan at ratml.org>
Date: Wed Sep 23 10:23:52 2015 -0400
Add numeric split info.
>---------------------------------------------------------------
c5a27c24a07ee6e44af73540976bf018270a937a
.../methods/hoeffding_trees/numeric_split_info.hpp | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/src/mlpack/methods/hoeffding_trees/numeric_split_info.hpp b/src/mlpack/methods/hoeffding_trees/numeric_split_info.hpp
new file mode 100644
index 0000000..b048b4b
--- /dev/null
+++ b/src/mlpack/methods/hoeffding_trees/numeric_split_info.hpp
@@ -0,0 +1,28 @@
+/**
+ * @file numeric_split_info.hpp
+ * @author Ryan Curtin
+ *
+ * After a numeric split has been made, this holds information on the split.
+ */
+#ifndef __MLPACK_METHODS_HOEFFDING_TREES_NUMERIC_SPLIT_INFO_HPP
+#define __MLPACK_METHODS_HOEFFDING_TREES_NUMERIC_SPLIT_INFO_HPP
+
+#include <mlpack/core.hpp>
+
+namespace mlpack {
+namespace tree {
+
+// This doesn't do anything yet.
+class NumericSplitInfo
+{
+ public:
+ NumericSplitInfo() { }
+
+ template<typename eT>
+ static size_t CalculateDirection(const eT& /* value */) { return 0; }
+};
+
+} // namespace tree
+} // namespace mlpack
+
+#endif
More information about the mlpack-git
mailing list