Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
xgboost.data::GHistIndexRawFormat Class Reference
Inheritance diagram for xgboost.data::GHistIndexRawFormat:
xgboost.data::SparsePageFormat< GHistIndexMatrix >

Public Member Functions

bool Read (GHistIndexMatrix *page, common::AlignedResourceReadStream *fi) override
 Load all the segments into page, advance fi to end of the block.
 
std::size_t Write (GHistIndexMatrix const &page, common::AlignedFileWriteStream *fo) override
 save the data to fo, when a page was written.
 

Member Function Documentation

◆ Read()

bool xgboost.data::GHistIndexRawFormat::Read ( GHistIndexMatrix page,
common::AlignedResourceReadStream fi 
)
inlineoverridevirtual

Load all the segments into page, advance fi to end of the block.

Parameters
pageThe data to read page into.
fithe input stream of the file
Returns
true of the loading as successful, false if end of file was reached

Implements xgboost.data::SparsePageFormat< GHistIndexMatrix >.

◆ Write()

std::size_t xgboost.data::GHistIndexRawFormat::Write ( GHistIndexMatrix const &  page,
common::AlignedFileWriteStream fo 
)
inlineoverridevirtual

save the data to fo, when a page was written.

Parameters
fooutput stream

Implements xgboost.data::SparsePageFormat< GHistIndexMatrix >.


The documentation for this class was generated from the following file: