* @brief Command-line parser */
| 15 | * @brief Command-line parser |
| 16 | */ |
| 17 | class CMDParser{ |
| 18 | public: |
| 19 | CMDParser() : do_cross_validation(false), gamma_set(false), nr_fold(0), gpu_id(0), n_cores(-1) {}; |
| 20 | |
| 21 | void parse_command_line(int argc, char **argv); |
| 22 | |
| 23 | void parse_python(int argc, char **argv); |
| 24 | |
| 25 | bool check_parameter(); |
| 26 | |
| 27 | SvmParam param_cmd; |
| 28 | bool do_cross_validation; |
| 29 | bool gamma_set; |
| 30 | int nr_fold; |
| 31 | int gpu_id; |
| 32 | int n_cores; |
| 33 | string svmtrain_input_file_name; |
| 34 | string svmpredict_input_file; |
| 35 | string svmpredict_output_file; |
| 36 | string svmpredict_model_file_name; |
| 37 | string model_file_name; |
| 38 | }; |
| 39 | |
| 40 | |
| 41 |
nothing calls this directly
no outgoing calls
no test coverage detected