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:
authorJohn Langford <jl@humpty.(none)>2010-09-21 00:18:00 +0400
committerJohn Langford <jl@humpty.(none)>2010-09-21 00:18:00 +0400
commit136fd50b04e1f271a4f21c810d6466b8eeaeb9d5 (patch)
tree0a7adc9df1d96ba96d2168a7519ca702af778ff4 /parser.cc
parent829730459f1f2fc766df37ab34c9d82c4cc0db67 (diff)
initial corrective update
Diffstat (limited to 'parser.cc')
-rw-r--r--parser.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser.cc b/parser.cc
index 03afa029..8fb68be2 100644
--- a/parser.cc
+++ b/parser.cc
@@ -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);