diff options
author | Hal Daume III <me@hal3.name> | 2012-11-19 00:53:25 +0400 |
---|---|---|
committer | Hal Daume III <me@hal3.name> | 2012-11-19 00:53:25 +0400 |
commit | 442a943a6018371ba667dbf3ec6ef8e360937213 (patch) | |
tree | 55fdd1b17d6b6e60e3c4270c8b4ed0cc09a0ef2f /vowpalwabbit/sparse_dense.h | |
parent | 398f562bc03912aa3cdfc261042f458152caa13a (diff) | |
parent | d167c2bc46a56a26c4a3839366be76186a07ed1c (diff) |
minor searn tweaks
Diffstat (limited to 'vowpalwabbit/sparse_dense.h')
-rw-r--r-- | vowpalwabbit/sparse_dense.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vowpalwabbit/sparse_dense.h b/vowpalwabbit/sparse_dense.h index 6ae8498e..d8d6ff57 100644 --- a/vowpalwabbit/sparse_dense.h +++ b/vowpalwabbit/sparse_dense.h @@ -38,4 +38,9 @@ void print_quad(weight* weights, feature& page_feature, v_array<feature> &offer_ float single_quad_weight(weight* weights, feature& page_feature, feature* offer_feature, size_t mask); +void cubic(v_array<feature> &f, const v_array<feature> &first_part, const v_array<feature> &second_part, const v_array<feature> &third_part, size_t mask); +float one_pf_cubic_predict(weight* weights, feature& f0, feature& f1, v_array<feature> &cross_features, size_t mask); +float one_pf_cubic_predict_trunc(weight* weights, feature& f0, feature& f1, v_array<feature> &cross_features, size_t mask, float gravity); + + #endif |