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

Method Application

src/application/application.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace LightGBM {
29
30Application::Application(int argc, char** argv) {
31 LoadParameters(argc, argv);
32 // set number of threads for openmp
33 if (config_.num_threads > 0) {
34 omp_set_num_threads(config_.num_threads);
35 }
36 if (config_.data.size() == 0 && config_.task != TaskType::kConvertModel) {
37 Log::Fatal("No training/prediction data, application quit");
38 }
39 omp_set_nested(0);
40}
41
42Application::~Application() {
43 if (config_.is_parallel) {

Callers

nothing calls this directly

Calls 3

omp_set_num_threadsFunction · 0.50
omp_set_nestedFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected