MCPcopy Create free account
hub / github.com/dmlc/xgboost / GenerateArrayInterface

Method GenerateArrayInterface

tests/cpp/helpers.cc:275–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275std::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
282std::pair<std::vector<std::string>, std::string> MakeArrayInterfaceBatch(
283 HostDeviceVector<float> const* storage, std::size_t n_samples, bst_feature_t n_features,

Callers 10

TESTFunction · 0.80
MakeSimpleDMatrixForTestFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
RunMethod · 0.80
TESTFunction · 0.80
SetUpMethod · 0.80

Calls 1

ArrayInterfaceImplMethod · 0.95

Tested by 10

TESTFunction · 0.64
MakeSimpleDMatrixForTestFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
RunMethod · 0.64
TESTFunction · 0.64
SetUpMethod · 0.64