Skip to content

Commit

Permalink
change kColS to kColSecure to avoid confusion with kCols
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyueXu77 committed Feb 12, 2024
1 parent 52e8951 commit e9eef15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/xgboost/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(); }
Expand Down

0 comments on commit e9eef15

Please sign in to comment.