Пример #1
0
    void thundersvm_train_after_parse(char **option, int len, char *file_name){
        CMDParser parser;
        parser.parse_python(len, option);
	if(!parser.check_parameter()) return;
        char model_file_path[1024] = DATASET_DIR;
//        strcat(model_file_path, "../python/");
        strcpy(model_file_path, file_name);
        thundersvm_train_sub(dataset_python, parser, model_file_path);
    }
Пример #2
0
    void thundersvm_predict_after_parse(char *model_file_name, char *output_file_name, char **option, int len){
        CMDParser parser;
        parser.parse_python(len, option);
        char model_file_path[1024] = DATASET_DIR;
        char output_file_path[1024] = DATASET_DIR;
//        strcat(model_file_path, "../python/");
//        strcat(output_file_path, "../python/");
        strcpy(model_file_path, model_file_name);
        strcpy(output_file_path, output_file_name);
        thundersvm_predict_sub(dataset_python, parser, model_file_path, output_file_path);
    }