#include "helpers.h" #include "../../src/data/device_adapter.cuh" #include "../../src/data/device_dmatrix.h" namespace xgboost { std::shared_ptr RandomDataGenerator::GenerateDeviceDMatrix(bool with_label, bool float_label, size_t classes) { std::vector> storage(cols_); std::string arr = this->GenerateColumnarArrayInterface(&storage); auto adapter = data::CudfAdapter(arr); std::shared_ptr m { new data::DeviceDMatrix{&adapter, std::numeric_limits::quiet_NaN(), 1, 256}}; return m; } } // namespace xgboost