Dmatrix refactor stage 1 (#3301)
* Use sparse page as singular CSR matrix representation * Simplify dmatrix methods * Reduce statefullness of batch iterators * BREAKING CHANGE: Remove prob_buffer_row parameter. Users are instead recommended to sample their dataset as a preprocessing step before using XGBoost.
This commit is contained in:
@@ -29,7 +29,7 @@ TEST(c_api, XGDMatrixCreateFromMat_omp) {
|
||||
iter->BeforeFirst();
|
||||
while (iter->Next()) {
|
||||
auto batch = iter->Value();
|
||||
for (int i = 0; i < batch.size; i++) {
|
||||
for (int i = 0; i < batch.Size(); i++) {
|
||||
auto inst = batch[i];
|
||||
for (int j = 0; i < inst.length; i++) {
|
||||
ASSERT_EQ(inst[j].fvalue, 1.5);
|
||||
|
||||
Reference in New Issue
Block a user