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

Method EndIter

src/data/sparse_page_source.h:404–411  ·  view source on GitHub ↗

Call this at the last iteration (it == n_batches).

Source from the content-addressed store, hash-verified

402 [[nodiscard]] bool AtEnd() const override { return at_end_; }
403 // Call this at the last iteration (it == n_batches).
404 virtual void EndIter() {
405 this->cache_info_->Commit();
406 if (this->cache_info_->Size() != 0) {
407 CHECK_EQ(this->count_, this->cache_info_->Size());
408 }
409 CHECK_GE(this->count_, 1);
410 this->count_ = 0;
411 }
412
413 virtual void Reset(BatchParam const& param) {
414 TryLockGuard guard{single_threaded_};

Callers 3

SparsePageSourceClass · 0.45
PageSourceIncMixInClass · 0.45

Calls 2

CommitMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected