diff options
author | fenchel <fenchel@squidhive.net> | 2014-07-15 18:48:55 +0400 |
---|---|---|
committer | fenchel <fenchel@squidhive.net> | 2014-07-15 18:48:55 +0400 |
commit | 5614f7f7c42bdb86f2a455620e83811e96a9e5e3 (patch) | |
tree | 948fbefe64b3e37e1b7f5a1011224ec6e7ec1c7b | |
parent | a4cb704a0bc452e22ba94da049cc548a98451af2 (diff) |
stage_poly: constant needs multiplier
(relevant for --oaa and other multiple-predictor reductions)
-rw-r--r-- | vowpalwabbit/stagewise_poly.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vowpalwabbit/stagewise_poly.cc b/vowpalwabbit/stagewise_poly.cc index e8f68b9a..73b9d2a3 100644 --- a/vowpalwabbit/stagewise_poly.cc +++ b/vowpalwabbit/stagewise_poly.cc @@ -3,6 +3,7 @@ #include "simple_label.h" #include "allreduce.h" #include "accumulate.h" +#include "constant.h" #include "memory.h" #include <float.h> @@ -92,7 +93,7 @@ namespace StagewisePoly inline uint32_t constant_feat(const stagewise_poly &poly) { - return stride_shift(poly, constant); + return stride_shift(poly, constant * poly.all->wpp); } inline uint32_t constant_feat_masked(const stagewise_poly &poly) |