From 05115adbffe3e9e355727be6348dc0cdf48ff749 Mon Sep 17 00:00:00 2001 From: tqchen Date: Fri, 1 Jan 2016 01:04:08 -0800 Subject: [PATCH] [TREE] move tree model --- old_src/tree/model.h => include/xgboost/tree_model.h | 0 {old_src/utils => src/common}/group_data.h | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename old_src/tree/model.h => include/xgboost/tree_model.h (100%) rename {old_src/utils => src/common}/group_data.h (94%) diff --git a/old_src/tree/model.h b/include/xgboost/tree_model.h similarity index 100% rename from old_src/tree/model.h rename to include/xgboost/tree_model.h diff --git a/old_src/utils/group_data.h b/src/common/group_data.h similarity index 94% rename from old_src/utils/group_data.h rename to src/common/group_data.h index 31f9c3a50..eda3e5e25 100644 --- a/old_src/utils/group_data.h +++ b/src/common/group_data.h @@ -11,13 +11,13 @@ * The major algorithm is a two pass linear scan algorithm that requires two pass scan over the data * \author Tianqi Chen */ -#ifndef XGBOOST_UTILS_GROUP_DATA_H_ -#define XGBOOST_UTILS_GROUP_DATA_H_ +#ifndef XGBOOST_COMMON_GROUP_DATA_H_ +#define XGBOOST_COMMON_GROUP_DATA_H_ #include namespace xgboost { -namespace utils { +namespace common { /*! * \brief multi-thread version of group builder * \tparam ValueType type of entries in the sparse matrix @@ -105,10 +105,10 @@ struct ParallelGroupBuilder { /*! \brief index of nonzero entries in each row */ std::vector &data; /*! \brief thread local data structure */ - std::vector< std::vector > &thread_rptr; + std::vector > &thread_rptr; /*! \brief local temp thread ptr, use this if not specified by the constructor */ - std::vector< std::vector > tmp_thread_rptr; + std::vector > tmp_thread_rptr; }; -} // namespace utils +} // namespace common } // namespace xgboost #endif // XGBOOST_UTILS_GROUP_DATA_H_