Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
xgboost.data::SparsePageSource Class Reference
Inheritance diagram for xgboost.data::SparsePageSource:
xgboost.data::SparsePageSourceImpl< SparsePage > xgboost::BatchIteratorImpl< T >

Public Member Functions

 SparsePageSource (DataIterProxy< DataIterResetCallback, XGDMatrixCallbackNext > iter, DMatrixProxy *proxy, float missing, int nthreads, bst_feature_t n_features, uint32_t n_batches, std::shared_ptr< Cache > cache)
 
SparsePageSourceoperator++ () final
 
void Reset () override
 
- Public Member Functions inherited from xgboost.data::SparsePageSourceImpl< SparsePage >
 SparsePageSourceImpl (float missing, int nthreads, bst_feature_t n_features, uint32_t n_batches, std::shared_ptr< Cache > cache)
 
 SparsePageSourceImpl (SparsePageSourceImpl const &that)=delete
 
uint32_t Iter () const
 
const SparsePageoperator* () const override
 
std::shared_ptr< SparsePage const > Page () const override
 
bool AtEnd () const override
 

Additional Inherited Members

- Public Types inherited from xgboost::BatchIteratorImpl< T >
using iterator_category = std::forward_iterator_tag
 
- Protected Types inherited from xgboost.data::SparsePageSourceImpl< SparsePage >
using Ring = std::vector< std::future< std::shared_ptr< SparsePage > > >
 
- Protected Member Functions inherited from xgboost.data::SparsePageSourceImpl< SparsePage >
bool ReadCache ()
 
void WriteCache ()
 
- Protected Attributes inherited from xgboost.data::SparsePageSourceImpl< SparsePage >
std::mutex single_threaded_
 
std::shared_ptr< SparsePagepage_
 
bool at_end_
 
float missing_
 
std::int32_t nthreads_
 
bst_feature_t n_features_
 
std::uint32_t count_
 
std::uint32_t n_batches_
 
std::shared_ptr< Cachecache_info_
 
std::unique_ptr< Ring > ring_
 
ExceHandler exce_
 
common::Monitor monitor_
 

Member Function Documentation

◆ operator++()

SparsePageSource & xgboost.data::SparsePageSource::operator++ ( )
inlinefinalvirtual

◆ Reset()

void xgboost.data::SparsePageSource::Reset ( )
inlineoverridevirtual

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