diff options
-rw-r--r-- | vowpalwabbit/simple_label.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vowpalwabbit/simple_label.cc b/vowpalwabbit/simple_label.cc index 8906fc08..0b981776 100644 --- a/vowpalwabbit/simple_label.cc +++ b/vowpalwabbit/simple_label.cc @@ -6,6 +6,7 @@ #include "cache.h" #include "rand48.h" #include "vw.h" +#include "accumulate.h" using namespace std; @@ -235,6 +236,9 @@ bool summarize_holdout_set(vw& all, size_t& no_win_counter) { float thisLoss = (all.sd->weighted_holdout_examples_since_last_pass > 0) ? (float)(all.sd->holdout_sum_loss_since_last_pass / all.sd->weighted_holdout_examples_since_last_pass) : FLT_MAX; + if (all.span_server != "") + thisLoss = accumulate_scalar(all, all.span_server, thisLoss); + all.sd->weighted_holdout_examples_since_last_pass = 0; all.sd->holdout_sum_loss_since_last_pass = 0; |