1#ifndef LIGHTGBM_APPLICATION_H_
2#define LIGHTGBM_APPLICATION_H_
4#include <LightGBM/meta.h>
5#include <LightGBM/config.h>
38 void LoadParameters(
int argc,
char** argv);
61 std::unique_ptr<Dataset> train_data_;
63 std::vector<std::unique_ptr<Dataset>> valid_datas_;
65 std::vector<std::unique_ptr<Metric>> train_metric_;
67 std::vector<std::vector<std::unique_ptr<Metric>>> valid_metrics_;
69 std::unique_ptr<Boosting> boosting_;
71 std::unique_ptr<ObjectiveFunction> objective_fun_;
76 if (config_.task == TaskType::kPredict || config_.task == TaskType::KRefitTree) {
79 }
else if (config_.task == TaskType::kConvertModel) {
The main entrance of LightGBM. this application has two tasks: Train and Predict. Train task will tra...
Definition application.h:25
void Run()
To call this funciton to run application.
Definition application.h:75
~Application()
Destructor.
Definition application.cpp:44
The interface for Boosting.
Definition boosting.h:22
Definition dataset_loader.h:8
The main class of data set, which are used to traning or validation.
Definition dataset.h:278
Definition MedLightGBM.h:38
The interface of metric. Metric is used to calculate metric result.
Definition metric.h:20
The interface of Objective Function.
Definition objective_function.h:13
desc and descl2 fields must be written in reStructuredText format
Definition application.h:10