A page stored in ELLPACK format.
More...
#include <data.h>
A page stored in ELLPACK format.
This class uses the PImpl idiom (https://en.cppreference.com/w/cpp/language/pimpl) to avoid including CUDA-specific implementation details in the header.
◆ EllpackPage() [1/2]
xgboost::EllpackPage::EllpackPage |
( |
| ) |
|
Default constructor.
This is used in the external memory case. An empty ELLPACK page is constructed with its content set later by the reader.
◆ EllpackPage() [2/2]
Constructor from an existing DMatrix.
This is used in the in-memory case. The ELLPACK page is constructed from an existing DMatrix in CSR format.
◆ ~EllpackPage()
xgboost::EllpackPage::~EllpackPage |
( |
| ) |
|
◆ Impl() [1/2]
const EllpackPageImpl* xgboost::EllpackPage::Impl |
( |
| ) |
const |
|
inline |
◆ Impl() [2/2]
EllpackPageImpl* xgboost::EllpackPage::Impl |
( |
| ) |
|
|
inline |
◆ SetBaseRowId()
void xgboost::EllpackPage::SetBaseRowId |
( |
size_t |
row_id | ) |
|
Set the base row id for this page.
◆ Size()
size_t xgboost::EllpackPage::Size |
( |
| ) |
const |
- Returns
- Number of instances in the page.
The documentation for this class was generated from the following file:
- /workspace/include/xgboost/data.h