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/lrq.cc
parent35473f6125e99c90d9a6cb285f83c9b4eb3b9791 (diff)
in the middle---some bug in test
Diffstat (limited to 'vowpalwabbit/lrq.cc')
-rw-r--r--vowpalwabbit/lrq.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/vowpalwabbit/lrq.cc b/vowpalwabbit/lrq.cc
index 3263aa1d..f7e9e466 100644
--- a/vowpalwabbit/lrq.cc
+++ b/vowpalwabbit/lrq.cc
@@ -73,7 +73,7 @@ namespace LRQ {
}
size_t which = ec.example_counter;
- simple_prediction first_prediction;
+ float first_prediction;
float first_loss;
unsigned int maxiter = (all.training && ! example_is_test (ec)) ? 2 : 1;
@@ -149,15 +149,16 @@ namespace LRQ {
base.predict(ec);
// Restore example
-
+
+ label_data* ld = (label_data*)ec.ld;
if (iter == 0)
{
- first_prediction = ec.final_prediction;
+ first_prediction = ld->prediction;
first_loss = ec.loss;
}
else
{
- ec.final_prediction = first_prediction;
+ ld->prediction = first_prediction;
ec.loss = first_loss;
}