]> granicus.if.org Git - liblinear/commitdiff
Change %lf to %g in do_find_parameter_C() for Readability
authormomohuang <momohuang@gmail.com>
Mon, 3 Aug 2015 05:11:22 +0000 (13:11 +0800)
committermomohuang <momohuang@gmail.com>
Mon, 3 Aug 2015 05:11:22 +0000 (13:11 +0800)
train.c

diff --git a/train.c b/train.c
index 53f6dbb19fbba62c1ae49e58c74ff4c161c2b203..4fc61a09b560f4881cb6a317db09264d3c7854f3 100644 (file)
--- 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, &param, 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()