void do_find_parameter_C() { double start_C, best_C, best_rate; double max_C = 1024; if (flag_C_specified) start_C = param.C; else start_C = -1.0; find_parameter_C(&prob, ¶m, nr_fold, start_C, max_C, &best_C, &best_rate); printf("Best C = %lf CV accuracy = %g%%\n", best_C, 100.0*best_rate); }
void do_find_parameter_C() { double start_C, best_C, best_rate; double max_C = 1024; if (flag_C_specified) start_C = param.C; else start_C = -1.0; printf("Doing parameter search with %d-fold cross validation.\n", nr_fold); find_parameter_C(&prob, ¶m, nr_fold, start_C, max_C, &best_C, &best_rate); printf("Best C = %lf CV accuracy = %g%%\n", best_C, 100.0*best_rate); }