From 653bee4b89131a997043a074d51c28dedb907f5c Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Mon, 18 May 2015 16:17:01 +0800 Subject: output update --- train.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'train.cpp') diff --git a/train.cpp b/train.cpp index a0c62a9..bae88f3 100644 --- a/train.cpp +++ b/train.cpp @@ -27,6 +27,7 @@ int train(DataProvider &dp) { LOG(INFO)<<"Training started"; dp.getAllDataSet(D); LOG(INFO)<<"Read "<train(D); vector L; rsvm->predict(D,L); @@ -111,7 +112,8 @@ int main(int argc, char **argv) { ("debug,d", "show debug messages") ("model,m", po::value(), "set input model file") ("output,o", po::value(), "set output model/prediction file") - ("feature,i", po::value(), "set input feature file"); + ("feature,i", po::value(), "set input feature file") + ("c,c",po::value(),"trades margin size against training error"); // Parsing program options po::store(po::parse_command_line(argc, argv, desc), vm); @@ -130,6 +132,9 @@ int main(int argc, char **argv) { mainFunc mainf; if (vm.count("train")) { + if (vm.count("c")) { + C=vm["c"].as(); + } mainf = &train; } else if (vm.count("validate")||vm.count("predict")) { -- cgit v1.2.3-70-g09d2