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... | |
SparsePage () | |
constructor More... | |
size_t | Size () const |
size_t | MemCostBytes () const |
void | Clear () |
clear the page More... | |
SparsePage | GetTranspose (int num_columns) const |
void | SortRows () |
void | Push (const dmlc::RowBlock< uint32_t > &batch) |
Push row block into the 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... | |
void | Push (const Inst &inst) |
Push one instance into page. More... | |
size_t | Size () |
Public Attributes | |
HostDeviceVector< size_t > | offset |
HostDeviceVector< Entry > | data |
the data of the segments More... | |
size_t | base_rowid |
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
|
inline |
|
inline |
|
inline |
get i-th row from the batch
void xgboost::SparsePage::Push | ( | const dmlc::RowBlock< uint32_t > & | batch | ) |
Push row block into the page.
batch | the row batch. |
void xgboost::SparsePage::Push | ( | const SparsePage & | batch | ) |
Push a sparse page.
batch | the row page |
|
inline |
Push one instance into page.
inst | an instance row |
void xgboost::SparsePage::PushCSC | ( | const SparsePage & | batch | ) |
Push a SparsePage stored in CSC format.
batch | The row batch to be pushed |
|
inline |
|
inline |
|
inline |
size_t xgboost::SparsePage::base_rowid |
HostDeviceVector<Entry> xgboost::SparsePage::data |
the data of the segments
HostDeviceVector<size_t> xgboost::SparsePage::offset |