Vowpal Wabbit
|
#include <cfloat>
#include <sstream>
#include <queue>
#include <utility>
#include "topk.h"
#include "learner.h"
#include "parse_args.h"
#include "vw.h"
Go to the source code of this file.
Classes | |
class | VW::topk |
Namespaces | |
VW | |
Functions | |
void | print_result (int file_descriptor, std::pair< VW::topk::const_iterator_t, VW::topk::const_iterator_t > const &view) |
void | output_example (vw &all, example &ec) |
template<bool is_learn> | |
void | predict_or_learn (VW::topk &d, LEARNER::single_learner &base, multi_ex &ec_seq) |
void | finish_example (vw &all, VW::topk &d, multi_ex &ec_seq) |
LEARNER::base_learner * | topk_setup (options_i &options, vw &all) |
Definition at line 124 of file topk.cc.
References VW::topk::clear_container(), vw::final_prediction_sink, VW::finish_example(), VW::topk::get_container_view(), output_example(), and print_result().
Definition at line 104 of file topk.cc.
References example::l, label_data::label, example::loss, example::num_features, CB::print_update(), vw::sd, polylabel::simple, example::test_only, shared_data::update(), example::weight, and shared_data::weighted_labels.
Referenced by finish_example().
void predict_or_learn | ( | VW::topk & | d, |
LEARNER::single_learner & | base, | ||
multi_ex & | ec_seq | ||
) |
Definition at line 116 of file topk.cc.
References VW::topk::learn(), and VW::topk::predict().
void print_result | ( | int | file_descriptor, |
std::pair< VW::topk::const_iterator_t, VW::topk::const_iterator_t > const & | view | ||
) |
LEARNER::base_learner* topk_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 132 of file topk.cc.
References VW::config::option_group_definition::add(), VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), VW::finish_example(), LEARNER::init_learner(), LEARNER::make_base(), VW::config::make_option(), setup_base(), and VW::config::options_i::was_supplied().
Referenced by parse_reductions().