|
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 | |
| HostSparsePageView | GetView () const |
| SparsePage () | |
| constructor More... | |
| SparsePage (SparsePage const &that)=delete | |
| SparsePage (SparsePage &&that)=default | |
| SparsePage & | operator= (SparsePage const &that)=delete |
| SparsePage & | operator= (SparsePage &&that)=default |
| virtual | ~SparsePage ()=default |
| 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, int32_t n_threads) const |
| void | SortIndices (int32_t n_threads) |
| Sort the column index. More... | |
| bool | IsIndicesSorted (int32_t n_threads) const |
| Check wether the column index is sorted. More... | |
| void | Reindex (uint64_t feature_offset, int32_t n_threads) |
| Reindex the column index with an offset. More... | |
| void | SortRows (int32_t n_threads) |
| template<typename AdapterBatchT > | |
| bst_idx_t | Push (AdapterBatchT const &batch, float missing, std::int32_t 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_idx_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
|
delete |
|
default |
|
virtualdefault |
|
inline |
clear the page
| SparsePage xgboost::SparsePage::GetTranspose | ( | int | num_columns, |
| int32_t | n_threads | ||
| ) | const |
|
inline |
| bool xgboost::SparsePage::IsIndicesSorted | ( | int32_t | n_threads | ) | const |
Check wether the column index is sorted.
|
inline |
|
default |
|
delete |
| bst_idx_t xgboost::SparsePage::Push | ( | AdapterBatchT const & | batch, |
| float | missing, | ||
| std::int32_t | 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 |
| void xgboost::SparsePage::Reindex | ( | uint64_t | feature_offset, |
| int32_t | n_threads | ||
| ) |
Reindex the column index with an offset.
|
inline |
Set the base row id for this page.
|
inline |
| void xgboost::SparsePage::SortIndices | ( | int32_t | n_threads | ) |
Sort the column index.
| void xgboost::SparsePage::SortRows | ( | int32_t | n_threads | ) |
| size_t xgboost::SparsePage::base_rowid {0} |
| HostDeviceVector<Entry> xgboost::SparsePage::data |
the data of the segments
| HostDeviceVector<bst_idx_t> xgboost::SparsePage::offset |