From e9eef1539222386ec616c84ef3ad0ae4e9520a09 Mon Sep 17 00:00:00 2001 From: Ziyue Xu Date: Mon, 12 Feb 2024 11:32:56 -0500 Subject: [PATCH] change kColS to kColSecure to avoid confusion with kCols --- include/xgboost/data.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/xgboost/data.h b/include/xgboost/data.h index 263f323b91be..bdd44491e040 100644 --- a/include/xgboost/data.h +++ b/include/xgboost/data.h @@ -40,7 +40,7 @@ enum class DataType : uint8_t { enum class FeatureType : uint8_t { kNumerical = 0, kCategorical = 1 }; -enum class DataSplitMode : int { kRow = 0, kCol = 1, kColS = 2 }; +enum class DataSplitMode : int { kRow = 0, kCol = 1, kColSecure = 2 }; /*! * \brief Meta information about dataset, always sit in memory. @@ -186,10 +186,10 @@ class MetaInfo { } /** @brief Whether the data is split column-wise. */ - bool IsColumnSplit() const { return (data_split_mode == DataSplitMode::kCol) || (data_split_mode == DataSplitMode::kColS); } + bool IsColumnSplit() const { return (data_split_mode == DataSplitMode::kCol) || (data_split_mode == DataSplitMode::kColSecure); } /** @brief Whether the data is split column-wise with secure computation. */ - bool IsSecure() const { return data_split_mode == DataSplitMode::kColS; } + bool IsSecure() const { return data_split_mode == DataSplitMode::kColSecure; } /** @brief Whether this is a learning to rank data. */ bool IsRanking() const { return !group_ptr_.empty(); }