| 273 | } |
| 274 | |
| 275 | std::string RandomDataGenerator::GenerateArrayInterface(HostDeviceVector<float>* storage) const { |
| 276 | auto array_interface = this->ArrayInterfaceImpl(storage, rows_, cols_); |
| 277 | std::string out; |
| 278 | Json::Dump(array_interface, &out); |
| 279 | return out; |
| 280 | } |
| 281 | |
| 282 | std::pair<std::vector<std::string>, std::string> MakeArrayInterfaceBatch( |
| 283 | HostDeviceVector<float> const* storage, std::size_t n_samples, bst_feature_t n_features, |