diff options
author | Paulius Klyvis <paulius.klyvis@adform.com> | 2014-12-11 19:18:49 +0300 |
---|---|---|
committer | Paulius Klyvis <paulius.klyvis@adform.com> | 2014-12-11 19:18:49 +0300 |
commit | ee56eac6d2ef722aed5c613ce9238caee337503f (patch) | |
tree | 0f8e68d8575dfac3153d9be5b1396584989681cb | |
parent | 0e53199e6bbb4a09d16a42755472011adbbf2d1b (diff) |
updated_prediction to pred.scalar in progressive validation
-rw-r--r-- | vowpalwabbit/ftrl_proximal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vowpalwabbit/ftrl_proximal.cc b/vowpalwabbit/ftrl_proximal.cc index e1616769..1b0fdd9b 100644 --- a/vowpalwabbit/ftrl_proximal.cc +++ b/vowpalwabbit/ftrl_proximal.cc @@ -129,7 +129,7 @@ namespace FTRL { label_data& ld = ec.l.simple; //ec.loss = all.loss->getLoss(all.sd, ec.updated_prediction, ld.label) * ld.weight; if (b.progressive_validation) { - float v = 1./(1 + exp(-ec.updated_prediction)); + float v = 1./(1 + exp(-ec.pred.scalar)); fprintf(b.fo, "%.6f\t%d\n", v, (int)(ld.label * ld.weight)); } } |