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@hunch.net>2014-04-23 20:06:00 +0400
committerJohn Langford <jl@hunch.net>2014-04-23 20:06:00 +0400
commitf4d6658d7d91c62e501e837a0c2f5749923213a0 (patch)
tree2439562dfa336cf6fb299e0b1afb839df92b3f2c /vowpalwabbit/sender.cc
parent35473f6125e99c90d9a6cb285f83c9b4eb3b9791 (diff)
in the middle---some bug in test
Diffstat (limited to 'vowpalwabbit/sender.cc')
-rw-r--r--vowpalwabbit/sender.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/sender.cc b/vowpalwabbit/sender.cc
index f0b73f58..bfa1ce99 100644
--- a/vowpalwabbit/sender.cc
+++ b/vowpalwabbit/sender.cc
@@ -62,9 +62,9 @@ void receive_result(sender& s)
example* ec=s.delay_ring[s.received_index++ % s.all->p->ring_size];
label_data* ld = (label_data*)ec->ld;
- ec->final_prediction = res;
+ ld->prediction = res;
- ec->loss = s.all->loss->getLoss(s.all->sd, ec->final_prediction, ld->label) * ld->weight;
+ ec->loss = s.all->loss->getLoss(s.all->sd, ld->prediction, ld->label) * ld->weight;
return_simple_example(*(s.all), NULL, *ec);
}