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

Method Next

tests/cpp/data/test_adapter.cc:119–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 size_t static constexpr kCols { 13 }; // Test for having some missing columns
118
119 XGBoostBatchCSR Next() {
120 for (auto& v : data_) {
121 v += iter_;
122 }
123 XGBoostBatchCSR batch;
124 batch.columns = 2;
125 batch.offset = dmlc::BeginPtr(row_ptr_);
126 batch.index = dmlc::BeginPtr(feature_idx_);
127 batch.value = dmlc::BeginPtr(data_);
128 batch.size = kRows;
129
130 batch.label = nullptr;
131 batch.weight = nullptr;
132
133 iter_++;
134
135 return batch;
136 }
137 size_t Iter() const { return iter_; }
138};
139

Callers 3

TESTFunction · 0.45
TESTFunction · 0.45
CSRSetDataNextForTestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected