diff options
author | Juha Reunanen <juha.reunanen@gmail.com> | 2014-01-22 00:56:30 +0400 |
---|---|---|
committer | Juha Reunanen <juha.reunanen@gmail.com> | 2014-01-22 00:56:30 +0400 |
commit | c803da144613a117bf624e5e9dc4dce8f62671b1 (patch) | |
tree | 03457017b41f5f0f6416db2ac2c543dfe763cb61 | |
parent | 494bccae93dddffdd7e6807014d57697a3839041 (diff) |
If doing LDA, don't set eta to 10 for "non default update rule".
-rw-r--r-- | vowpalwabbit/parse_args.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vowpalwabbit/parse_args.cc b/vowpalwabbit/parse_args.cc index 5546b3be..eb9c1a05 100644 --- a/vowpalwabbit/parse_args.cc +++ b/vowpalwabbit/parse_args.cc @@ -415,7 +415,8 @@ vw* parse_args(int argc, char *argv[]) if( all->normalized_updates ) all->reg.stride *= 2; if(!vm.count("learning_rate") && !vm.count("l") && !(all->adaptive && all->normalized_updates)) - all->eta = 10; //default learning rate to 10 for non default update rule + if (all->lda == 0) + all->eta = 10; //default learning rate to 10 for non default update rule //if not using normalized or adaptive, default initial_t to 1 instead of 0 if(!all->adaptive && !all->normalized_updates && !vm.count("initial_t")) { |