Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel faigon <github.2009@yendor.com>2013-12-26 00:46:05 +0400
committerariel faigon <github.2009@yendor.com>2013-12-26 00:46:05 +0400
commit4bc678ecede1b1b9b5b25476326bdacb0613a0e2 (patch)
tree8188dc26fe78aa5ab96d0c5d38b45efee7b50953 /vowpalwabbit/parse_args.cc
parentcc7db28db06560a45bf4c61c2b936a02b3697fa8 (diff)
Support --constant/-C <initial_constant_value> option
Diffstat (limited to 'vowpalwabbit/parse_args.cc')
-rw-r--r--vowpalwabbit/parse_args.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vowpalwabbit/parse_args.cc b/vowpalwabbit/parse_args.cc
index 3eee061d..3cec507a 100644
--- a/vowpalwabbit/parse_args.cc
+++ b/vowpalwabbit/parse_args.cc
@@ -193,6 +193,7 @@ vw* parse_args(int argc, char *argv[])
("ignore", po::value< vector<unsigned char> >(), "ignore namespaces beginning with character <arg>")
("keep", po::value< vector<unsigned char> >(), "keep namespaces beginning with character <arg>")
("noconstant", "Don't add a constant feature")
+ ("constant,C", po::value<float>(&(all->initial_constant)), "Set initial value of constant")
("sort_features", "turn this on to disregard order in which features have been defined. This will lead to smaller cache sizes")
("ngram", po::value< vector<string> >(), "Generate N grams")
("skips", po::value< vector<string> >(), "Generate skips in N grams. This in conjunction with the ngram tag can be used to generate generalized n-skip-k-gram.")