|
| NumpyArrayIterForTest (float sparsity, size_t rows=Rows(), size_t cols=Cols(), size_t batches=Batches()) |
|
| NumpyArrayIterForTest (Context const *ctx, HostDeviceVector< float > const &data, std::size_t n_samples, bst_feature_t n_features, std::size_t n_batches) |
|
int | Next () override |
|
std::string | AsArray () const |
|
virtual void | Reset () |
|
std::size_t | Iter () const |
|
auto | Proxy () -> decltype(proxy_) |
|
| ArrayIterForTest (float sparsity, size_t rows, size_t cols, size_t batches) |
|
| ArrayIterForTest (Context const *ctx, HostDeviceVector< float > const &data, std::size_t n_samples, bst_feature_t n_features, std::size_t n_batches) |
| Create iterator with user provided data.
|
|
|
static size_t constexpr | Rows () |
|
static size_t constexpr | Batches () |
|
static size_t constexpr | Cols () |
|
HostDeviceVector< float > | data_ |
|
size_t | iter_ {0} |
|
DMatrixHandle | proxy_ |
|
std::unique_ptr< RandomDataGenerator > | rng_ |
|
std::vector< std::string > | batches_ |
|
std::string | interface_ |
|
size_t | rows_ |
|
size_t | cols_ |
|
size_t | n_batches_ |
|
◆ Next()
int xgboost::NumpyArrayIterForTest::Next |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- External/xgboost/tests/cpp/helpers.h
- External/xgboost/tests/cpp/helpers.cc