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:
-rw-r--r--vowpalwabbit/simple_label.cc4
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;