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:
Diffstat (limited to 'vowpalwabbit/simple_label.cc')
-rw-r--r--vowpalwabbit/simple_label.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/simple_label.cc b/vowpalwabbit/simple_label.cc
index fa25b050..d3646ec9 100644
--- a/vowpalwabbit/simple_label.cc
+++ b/vowpalwabbit/simple_label.cc
@@ -216,8 +216,8 @@ void output_and_account_example(vw& all, example& ec)
for (size_t i = 0; i<all.final_prediction_sink.size(); i++)
{
int f = (int)all.final_prediction_sink[i];
- if(all.active)
- active_print_result(f, ec.final_prediction, ai, ec.tag);
+ if(all.active && all.lda == 0)
+ active_print_result(f, ec->final_prediction, ai, ec->tag);
else if (all.lda > 0)
print_lda_result(all, f,ec.topic_predictions.begin,0.,ec.tag);
else