Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 10, 2025
1 parent d32fdb8 commit ac79286
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/xgboost/tree_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,10 @@ class RegTree : public Model {
[[nodiscard]] common::Span<float> Data() { return data_; }

private:
/*!
* \brief a union value of value and flag
* when flag == -1, this indicate the value is missing
/**
* @brief A dense vector for a single sample.
*
* It's nan if the value is missing.
*/
std::vector<float> data_;
bool has_missing_;
Expand Down

0 comments on commit ac79286

Please sign in to comment.