MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / Init

Method Init

src/treelearner/gpu_tree_learner.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void GPUTreeLearner::Init(const Dataset* train_data, bool is_constant_hessian) {
41 // initialize SerialTreeLearner
42 SerialTreeLearner::Init(train_data, is_constant_hessian);
43 // some additional variables needed for GPU trainer
44 num_feature_groups_ = train_data_->num_feature_groups();
45 // Initialize GPU buffers and kernels
46 InitGPU(config_->gpu_platform_id, config_->gpu_device_id);
47}
48
49// some functions used for debugging the GPU histogram construction
50#if GPU_DEBUG > 0

Callers 1

SplitMethod · 0.45

Calls 1

num_feature_groupsMethod · 0.45

Tested by

no test coverage detected