]> granicus.if.org Git - liblinear/commitdiff
in README use an example to explain that -C returns only the best
authorChih-Jen Lin <cjlin@csie.ntu.edu.tw>
Wed, 24 Oct 2018 10:52:49 +0000 (18:52 +0800)
committerChih-Jen Lin <cjlin@csie.ntu.edu.tw>
Wed, 24 Oct 2018 10:52:49 +0000 (18:52 +0800)
parameter rather than a model. Users must use the selected parameter
to train a model.

README

diff --git a/README b/README
index 287edb161238312c7745afd7db39d41dae16b0ea..6aed92439cf96be8272fae08b5f17f82ab61d4eb 100644 (file)
--- a/README
+++ b/README
@@ -259,10 +259,13 @@ Use a smaller stopping tolerance 0.001 than the default
 0.1 if you want more accurate solutions.
 
 > train -C data_file
+...
+Best C = 0.000488281  CV accuracy = 83.3333%
+> train -c 0.000488281 data_file 
 
-Conduct cross validation many times by L2-loss SVM
-and find the parameter C which achieves the best cross
-validation accuracy.
+Conduct cross validation many times by L2-loss SVM and find the
+parameter C which achieves the best cross validation accuracy. Then
+use the selected C to train the data for getting a model.
 
 > train -C -s 0 -v 3 -c 0.5 -e 0.0001 data_file