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/simple_label.cc
parent35473f6125e99c90d9a6cb285f83c9b4eb3b9791 (diff)
in the middle---some bug in test
Diffstat (limited to 'vowpalwabbit/simple_label.cc')
-rw-r--r--vowpalwabbit/simple_label.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vowpalwabbit/simple_label.cc b/vowpalwabbit/simple_label.cc
index de5a08fa..41b68baf 100644
--- a/vowpalwabbit/simple_label.cc
+++ b/vowpalwabbit/simple_label.cc
@@ -160,7 +160,7 @@ void print_update(vw& all, example& ec)
(long int)all.sd->example_number,
all.sd->weighted_examples,
label_buf,
- ec.final_prediction,
+ ld->prediction,
(long unsigned int)ec.num_features);
all.sd->weighted_holdout_examples_since_last_dump = 0.;
@@ -173,7 +173,7 @@ void print_update(vw& all, example& ec)
(long int)all.sd->example_number,
all.sd->weighted_examples,
label_buf,
- ec.final_prediction,
+ ld->prediction,
(long unsigned int)ec.num_features);
all.sd->sum_loss_since_last_dump = 0.0;
@@ -217,11 +217,11 @@ void output_and_account_example(vw& all, example& ec)
{
int f = (int)all.final_prediction_sink[i];
if(all.active && all.lda == 0)
- active_print_result(f, ec.final_prediction, ai, ec.tag);
+ active_print_result(f, ld->prediction, ai, ec.tag);
else if (all.lda > 0)
print_lda_result(all, f,ec.topic_predictions.begin,0.,ec.tag);
else
- all.print(f, ec.final_prediction, 0, ec.tag);
+ all.print(f, ld->prediction, 0, ec.tag);
}
print_update(all, ec);