MCPcopy Create free account
hub / github.com/dmlc/xgboost / Fetch

Method Fetch

src/data/sparse_page_source.h:582–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580class CSCPageSource : public PageSourceIncMixIn<CSCPage> {
581 protected:
582 void Fetch() final {
583 if (!this->ReadCache()) {
584 auto const& csr = source_->Page();
585 this->page_.reset(new CSCPage{});
586 // we might be able to optimize this by merging transpose and pushcsc
587 this->page_->PushCSC(csr->GetTranspose(n_features_, nthreads_));
588 page_->SetBaseRowId(csr->base_rowid);
589 this->WriteCache();
590 }
591 }
592
593 public:
594 CSCPageSource(float missing, int nthreads, bst_feature_t n_features, uint32_t n_batches,

Callers 4

CSCPageSourceMethod · 0.95
ResetMethod · 0.45
PageSourceIncMixInClass · 0.45

Calls 7

ReadCacheMethod · 0.80
PushCSCMethod · 0.80
GetTransposeMethod · 0.80
WriteCacheMethod · 0.80
PageMethod · 0.45
resetMethod · 0.45
SetBaseRowIdMethod · 0.45

Tested by

no test coverage detected