diff options
Diffstat (limited to 'vowpalwabbit/simple_label.cc')
-rw-r--r-- | vowpalwabbit/simple_label.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vowpalwabbit/simple_label.cc b/vowpalwabbit/simple_label.cc index 1777ac3d..7857ea98 100644 --- a/vowpalwabbit/simple_label.cc +++ b/vowpalwabbit/simple_label.cc @@ -216,6 +216,7 @@ bool summarize_holdout_set(vw& all, size_t& no_win_counter) return true; } - no_win_counter++; + if ((thisLoss != FLT_MAX) || (isfinite(all.sd->holdout_best_loss))) // it's only a loss if we're not infinite when the previous one wasn't infinite + no_win_counter++; return false; } |