diff options
author | John Langford <jl@humpty.(none)> | 2010-09-21 00:18:00 +0400 |
---|---|---|
committer | John Langford <jl@humpty.(none)> | 2010-09-21 00:18:00 +0400 |
commit | 136fd50b04e1f271a4f21c810d6466b8eeaeb9d5 (patch) | |
tree | 0a7adc9df1d96ba96d2168a7519ca702af778ff4 /parser.cc | |
parent | 829730459f1f2fc766df37ab34c9d82c4cc0db67 (diff) |
initial corrective update
Diffstat (limited to 'parser.cc')
-rw-r--r-- | parser.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -238,7 +238,7 @@ void parse_source_args(po::variables_map& vm, parser* par, bool quiet, size_t pa global.print = binary_print_result; } if (id == 0 || - ((global.backprop || global.delayed_global) + ((global.backprop || global.delayed_global || global.corrective) && vm.count("multisource"))) { int_pair pf = {f,id}; @@ -507,6 +507,8 @@ void setup_example(parser* p, example* ae) ae->done = false; ae->example_counter = ++example_count; ae->global_weight = p->lp->get_weight(ae->ld); + p->t += ae->global_weight; + ae->example_t = p->t; if (!ae->sorted && global.partition_bits > 0) unique_sort_features(ae); |