|
xgboost
|
In-memory storage unit of sparse batch, stored in CSR format. More...
#include <data.h>


Public Types | |
| using | Inst = common::Span< Entry const > |
| an instance of sparse vector in the batch More... | |
Public Member Functions | |
| Inst | operator[] (size_t i) const |
| get i-th row from the batch More... | |
| HostSparsePageView | GetView () const |
| SparsePage () | |
| constructor More... | |
| size_t | Size () const |
| size_t | MemCostBytes () const |
| void | Clear () |
| clear the page More... | |
| void | SetBaseRowId (size_t row_id) |
| Set the base row id for this page. More... | |
| SparsePage | GetTranspose (int num_columns) const |
| void | SortRows () |
| template<typename AdapterBatchT > | |
| uint64_t | Push (const AdapterBatchT &batch, float missing, int nthread) |
| Pushes external data batch onto this page. More... | |
| void | Push (const SparsePage &batch) |
| Push a sparse page. More... | |
| void | PushCSC (const SparsePage &batch) |
| Push a SparsePage stored in CSC format. More... | |
Public Attributes | |
| HostDeviceVector< bst_row_t > | offset |
| HostDeviceVector< Entry > | data |
| the data of the segments More... | |
| size_t | base_rowid {0} |
In-memory storage unit of sparse batch, stored in CSR format.
| using xgboost::SparsePage::Inst = common::Span<Entry const> |
an instance of sparse vector in the batch
|
inline |
constructor
|
inline |
clear the page
| SparsePage xgboost::SparsePage::GetTranspose | ( | int | num_columns | ) | const |
|
inline |
|
inline |
|
inline |
get i-th row from the batch
| uint64_t xgboost::SparsePage::Push | ( | const AdapterBatchT & | batch, |
| float | missing, | ||
| int | nthread | ||
| ) |
Pushes external data batch onto this page.
| AdapterBatchT |
| batch | |
| missing | |
| nthread |
| void xgboost::SparsePage::Push | ( | const SparsePage & | batch | ) |
Push a sparse page.
| batch | the row page |
| void xgboost::SparsePage::PushCSC | ( | const SparsePage & | batch | ) |
Push a SparsePage stored in CSC format.
| batch | The row batch to be pushed |
|
inline |
Set the base row id for this page.
|
inline |
|
inline |
| size_t xgboost::SparsePage::base_rowid {0} |
| HostDeviceVector<Entry> xgboost::SparsePage::data |
the data of the segments
| HostDeviceVector<bst_row_t> xgboost::SparsePage::offset |
1.8.17