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

Method SerialTreeLearner

src/treelearner/serial_tree_learner.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#endif // TIMETAG
29
30SerialTreeLearner::SerialTreeLearner(const Config* config)
31 :config_(config) {
32 random_ = Random(config_->feature_fraction_seed);
33 #pragma omp parallel
34 #pragma omp master
35 {
36 num_threads_ = omp_get_num_threads();
37 }
38}
39
40SerialTreeLearner::~SerialTreeLearner() {
41 #ifdef TIMETAG

Callers

nothing calls this directly

Calls 2

RandomClass · 0.50
omp_get_num_threadsFunction · 0.50

Tested by

no test coverage detected