Vowpal Wabbit
|
Public Member Functions | |
autolink (uint32_t d, uint32_t stride_shift) | |
void | predict (LEARNER::single_learner &base, example &ec) |
void | learn (LEARNER::single_learner &base, example &ec) |
Private Member Functions | |
void | prepare_example (LEARNER::single_learner &base, example &ec) |
void | reset_example (example &ec) |
Private Attributes | |
const uint32_t | _poly_degree |
const uint32_t | _stride_shift |
Static Private Attributes | |
static constexpr int | AUTOCONSTANT = 524267083 |
Definition at line 13 of file autolink.cc.
VW::autolink::autolink | ( | uint32_t | d, |
uint32_t | stride_shift | ||
) |
Definition at line 30 of file autolink.cc.
void VW::autolink::learn | ( | LEARNER::single_learner & | base, |
example & | ec | ||
) |
Definition at line 42 of file autolink.cc.
References LEARNER::learner< T, E >::learn(), prepare_example(), and reset_example().
Referenced by predict_or_learn().
void VW::autolink::predict | ( | LEARNER::single_learner & | base, |
example & | ec | ||
) |
Definition at line 35 of file autolink.cc.
References LEARNER::learner< T, E >::predict(), prepare_example(), and reset_example().
Referenced by predict_or_learn().
|
private |
Definition at line 49 of file autolink.cc.
References _poly_degree, _stride_shift, AUTOCONSTANT, autolink_namespace, example_predict::feature_space, example_predict::indices, example::pred, LEARNER::learner< T, E >::predict(), v_array< T >::push_back(), features::push_back(), polyprediction::scalar, features::sum_feat_sq, and example::total_sum_feat_sq.
Referenced by learn(), and predict().
|
private |
Definition at line 68 of file autolink.cc.
References autolink_namespace, features::clear(), example_predict::feature_space, example_predict::indices, v_array< T >::pop(), features::sum_feat_sq, and example::total_sum_feat_sq.
Referenced by learn(), and predict().
|
private |
Definition at line 24 of file autolink.cc.
Referenced by prepare_example().
|
private |
Definition at line 25 of file autolink.cc.
Referenced by prepare_example().
|
staticprivate |
Definition at line 26 of file autolink.cc.
Referenced by prepare_example().