Vowpal Wabbit
|
Public Types | |
using | const_iterator_t = container_t::const_iterator |
Public Member Functions | |
topk (uint32_t k_num) | |
void | predict (LEARNER::single_learner &base, multi_ex &ec_seq) |
void | learn (LEARNER::single_learner &base, multi_ex &ec_seq) |
std::pair< const_iterator_t, const_iterator_t > | get_container_view () |
void | clear_container () |
Private Types | |
using | container_t = std::multimap< float, v_array< char > > |
Private Member Functions | |
void | update_priority_queue (float pred, v_array< char > &tag) |
Private Attributes | |
const uint32_t | _k_num |
container_t | _pr_queue |
using VW::topk::const_iterator_t = container_t::const_iterator |
|
private |
void VW::topk::clear_container | ( | ) |
std::pair< VW::topk::const_iterator_t, VW::topk::const_iterator_t > VW::topk::get_container_view | ( | ) |
void VW::topk::learn | ( | LEARNER::single_learner & | base, |
multi_ex & | ec_seq | ||
) |
Definition at line 52 of file topk.cc.
References LEARNER::learner< T, E >::learn(), and update_priority_queue().
Referenced by predict_or_learn().
void VW::topk::predict | ( | LEARNER::single_learner & | base, |
multi_ex & | ec_seq | ||
) |
Definition at line 43 of file topk.cc.
References LEARNER::learner< T, E >::predict(), and update_priority_queue().
Referenced by predict_or_learn().
|
private |
|
private |
Definition at line 36 of file topk.cc.
Referenced by update_priority_queue().
|
private |
Definition at line 37 of file topk.cc.
Referenced by clear_container(), get_container_view(), and update_priority_queue().