From 56c5c2c4951e73a37ea37bb550be5175cd08e20d Mon Sep 17 00:00:00 2001 From: momohuang Date: Mon, 3 Aug 2015 13:11:22 +0800 Subject: [PATCH] Change %lf to %g in do_find_parameter_C() for Readability --- train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.c b/train.c index 53f6dbb..4fc61a0 100644 --- a/train.c +++ b/train.c @@ -151,7 +151,7 @@ void do_find_parameter_C() 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); + printf("Best C = %g CV accuracy = %g%%\n", best_C, 100.0*best_rate); } void do_cross_validation() -- 2.40.0