diff options
author | John Langford <jl@hunch.net> | 2014-04-23 20:06:00 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-04-23 20:06:00 +0400 |
commit | f4d6658d7d91c62e501e837a0c2f5749923213a0 (patch) | |
tree | 2439562dfa336cf6fb299e0b1afb839df92b3f2c /vowpalwabbit/multiclass.cc | |
parent | 35473f6125e99c90d9a6cb285f83c9b4eb3b9791 (diff) |
in the middle---some bug in test
Diffstat (limited to 'vowpalwabbit/multiclass.cc')
-rw-r--r-- | vowpalwabbit/multiclass.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vowpalwabbit/multiclass.cc b/vowpalwabbit/multiclass.cc index 23544b47..10805753 100644 --- a/vowpalwabbit/multiclass.cc +++ b/vowpalwabbit/multiclass.cc @@ -119,7 +119,7 @@ namespace MULTICLASS { (long int)all.sd->example_number, all.sd->weighted_examples, label_buf, - (long int)ec.final_prediction, + (long int)ld->prediction, (long unsigned int)ec.num_features); all.sd->weighted_holdout_examples_since_last_dump = 0; @@ -132,7 +132,7 @@ namespace MULTICLASS { (long int)all.sd->example_number, all.sd->weighted_examples, label_buf, - (long int)ec.final_prediction, + (long int)ld->prediction, (long unsigned int)ec.num_features); all.sd->sum_loss_since_last_dump = 0.0; @@ -147,7 +147,7 @@ namespace MULTICLASS { multiclass* ld = (multiclass*)ec.ld; size_t loss = 1; - if (ld->label == (uint32_t)ec.final_prediction) + if (ld->label == (uint32_t)ld->prediction) loss = 0; if(ec.test_only) @@ -169,7 +169,7 @@ namespace MULTICLASS { } for (int* sink = all.final_prediction_sink.begin; sink != all.final_prediction_sink.end; sink++) - all.print(*sink, ec.final_prediction, 0, ec.tag); + all.print(*sink, ld->prediction, 0, ec.tag); MULTICLASS::print_update(all, ec); } |