[mlpack] 39/207: Add decision tree to compilation.

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:38 UTC 2017


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 495098afd930ad5591e87946e6a6a9490ccb96e0
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Jan 17 14:19:35 2017 -0500

    Add decision tree to compilation.
---
 src/mlpack/methods/CMakeLists.txt               |  1 +
 src/mlpack/methods/decision_tree/CMakeLists.txt | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/src/mlpack/methods/CMakeLists.txt b/src/mlpack/methods/CMakeLists.txt
index 0f187b5..6aeed31 100644
--- a/src/mlpack/methods/CMakeLists.txt
+++ b/src/mlpack/methods/CMakeLists.txt
@@ -23,6 +23,7 @@ set(DIRS
   amf
   cf
   decision_stump
+  decision_tree
   det
   emst
   fastmks
diff --git a/src/mlpack/methods/decision_tree/CMakeLists.txt b/src/mlpack/methods/decision_tree/CMakeLists.txt
new file mode 100644
index 0000000..a8f35d3
--- /dev/null
+++ b/src/mlpack/methods/decision_tree/CMakeLists.txt
@@ -0,0 +1,23 @@
+cmake_minimum_required(VERSION 2.8)
+
+# Define the files we need to compile.
+# Anything not in this list will not be compiled into mlpack.
+set(SOURCES
+  decision_tree.hpp
+  decision_tree_impl.hpp
+  all_categorical_split.hpp
+  all_categorical_split_impl.hpp
+  best_binary_numeric_split.hpp
+  best_binary_numeric_split_impl.hpp
+  gini_gain.hpp
+  information_gain.hpp
+)
+
+# Add directory name to sources.
+set(DIR_SRCS)
+foreach(file ${SOURCES})
+  set(DIR_SRCS ${DIR_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
+endforeach()
+# Append sources (with directory name) to list of all mlpack sources (used at
+# the parent scope).
+set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list