summaryrefslogtreecommitdiff
path: root/mira
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-05-03 22:11:57 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-05-03 22:11:57 -0400
commit79677b2f20d41f78ce0471a9577c4190a9bdab36 (patch)
tree4e5222cb6b05f43c1d4ecccc7a8a28d897184357 /mira
parent2db0b41aadfbc2b3ca15c8ce7ca4b6950ba61598 (diff)
change default values
Diffstat (limited to 'mira')
-rw-r--r--mira/kbest_mira.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/mira/kbest_mira.cc b/mira/kbest_mira.cc
index c0c39232..60703273 100644
--- a/mira/kbest_mira.cc
+++ b/mira/kbest_mira.cc
@@ -67,9 +67,9 @@ bool InitCommandLine(int argc, char** argv, po::variables_map* conf) {
("passes,p", po::value<int>()->default_value(15), "Number of passes through the training data")
("reference,r",po::value<vector<string> >(), "[REQD] Reference translation(s) (tokenized text file)")
("mt_metric,m",po::value<string>()->default_value("ibm_bleu"), "Scoring metric (ibm_bleu, nist_bleu, koehn_bleu, ter, combi)")
- ("max_step_size,C", po::value<double>()->default_value(0.001), "maximum step size (C)")
+ ("max_step_size,C", po::value<double>()->default_value(0.01), "regularization strength (C)")
("mt_metric_scale,s", po::value<double>()->default_value(1.0), "Amount to scale MT loss function by")
- ("k_best_size,k", po::value<int>()->default_value(250), "Size of hypothesis list to evaluate")
+ ("k_best_size,k", po::value<int>()->default_value(250), "Size of hypothesis list to search for oracles")
("decoder_config,c",po::value<string>(),"Decoder configuration file");
po::options_description clo("Command line options");
clo.add_options()
@@ -210,7 +210,6 @@ int main(int argc, char** argv) {
double tot_loss = 0;
int dots = 0;
int cur_pass = 0;
- bool converged = false;
vector<double> dense_weights;
SparseVector<double> tot;
tot += lambdas; // initial weights