ThunderSVM
ThunderSVM: An Open-Source SVM Library on GPUs and CPUs
cmdparser.h
1 /*
2  * cmdparser.h
3  *
4  * Created on: Oct 14, 2017
5  * Author: Zeyi Wen
6  */
7 
8 #ifndef CMDPARSER_H_
9 #define CMDPARSER_H_
10 
11 #include "thundersvm.h"
12 #include "svmparam.h"
13 
17 class CMDParser{
18 public:
19  CMDParser() : do_cross_validation(false), nr_fold(0), gpu_id(0) {};
20 
21  void parse_command_line(int argc, char **argv);
22 
23  void parse_python(int argc, char **argv);
24 
25  SvmParam param_cmd;
26  bool do_cross_validation;
27  int nr_fold;
28  int gpu_id;
29  char svmtrain_input_file_name[1024];
30  char svmpredict_input_file[1024];
31  char svmpredict_output_file[1024];
32  char svmpredict_model_file_name[1024];
33  char model_file_name[1024];
34 };
35 
36 
37 
38 #endif /* CMDPARSER_H_ */
Command-line parser.
Definition: cmdparser.h:17
params for ThunderSVM
Definition: svmparam.h:13