A vector-like structure to represent set of rows. But saves the memory when all rows are in the set (common case in xgb)
More...
#include <data.h>
A vector-like structure to represent set of rows. But saves the memory when all rows are in the set (common case in xgb)
◆ RowSet()
xgboost::RowSet::RowSet |
( |
| ) |
|
|
default |
◆ Clear()
void xgboost::RowSet::Clear |
( |
| ) |
|
|
inline |
◆ Load()
bool xgboost::RowSet::Load |
( |
dmlc::Stream * |
fi | ) |
|
|
inline |
Load rowset from file.
- Parameters
-
- Returns
- if read is successful.
◆ operator[]()
bst_uint xgboost::RowSet::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
◆ PushBack()
void xgboost::RowSet::PushBack |
( |
bst_uint |
i | ) |
|
|
inline |
push the index back to the set
◆ Save()
void xgboost::RowSet::Save |
( |
dmlc::Stream * |
fo | ) |
const |
|
inline |
save rowset to file.
- Parameters
-
◆ Size()
size_t xgboost::RowSet::Size |
( |
| ) |
const |
|
inline |
- Returns
- the size of the set.
The documentation for this class was generated from the following file:
- /workspace/include/xgboost/data.h