| 687 | } |
| 688 | |
| 689 | ArrayIterForTest::ArrayIterForTest(float sparsity, bst_idx_t rows, size_t cols, size_t batches) |
| 690 | : rows_{rows}, cols_{cols}, n_batches_{batches} { |
| 691 | XGProxyDMatrixCreate(&proxy_); |
| 692 | rng_ = std::make_unique<RandomDataGenerator>(rows_, cols_, sparsity); |
| 693 | std::tie(batches_, interface_) = rng_->GenerateArrayInterfaceBatch(&data_, n_batches_); |
| 694 | } |
| 695 | |
| 696 | ArrayIterForTest::ArrayIterForTest(Context const* ctx, HostDeviceVector<float> const& data, |
| 697 | std::size_t n_samples, bst_feature_t n_features, |
nothing calls this directly
no test coverage detected