Vowpal Wabbit
|
Go to the source code of this file.
Classes | |
struct | direction |
struct | ect |
Functions | |
bool | exists (v_array< size_t > db) |
size_t | final_depth (size_t eliminations) |
bool | not_empty (v_array< v_array< uint32_t >> const &tournaments) |
void | print_level (v_array< v_array< uint32_t >> const &level) |
size_t | create_circuit (ect &e, uint64_t max_label, uint64_t eliminations) |
uint32_t | ect_predict (ect &e, single_learner &base, example &ec) |
void | ect_train (ect &e, single_learner &base, example &ec) |
void | predict (ect &e, single_learner &base, example &ec) |
void | learn (ect &e, single_learner &base, example &ec) |
base_learner * | ect_setup (options_i &options, vw &all) |
size_t create_circuit | ( | ect & | e, |
uint64_t | max_label, | ||
uint64_t | eliminations | ||
) |
Definition at line 104 of file ect.cc.
References ect::all_levels, ect::directions, final_depth(), ect::final_nodes, id(), v_array< T >::last(), ect::last_pair, not_empty(), v_array< T >::push_back(), v_array< T >::size(), and ect::tree_height.
Referenced by ect_setup().
uint32_t ect_predict | ( | ect & | e, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 193 of file ect.cc.
References ect::class_boundary, ect::directions, ect::errors, ect::final_nodes, id(), ect::k, example::l, ect::last_pair, LEARNER::learner< T, E >::learn(), example::pred, polyprediction::scalar, polylabel::simple, and ect::tree_height.
Referenced by predict().
base_learner* ect_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 340 of file ect.cc.
References VW::config::option_group_definition::add(), add(), VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), create_circuit(), LEARNER::init_multiclass_learner(), learn(), LEARNER::make_base(), VW::config::make_option(), vw::p, predict(), setup_base(), and VW::config::options_i::was_supplied().
Referenced by parse_reductions().
void ect_train | ( | ect & | e, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 230 of file ect.cc.
References v_array< T >::begin(), ect::class_boundary, v_array< T >::clear(), ect::directions, v_array< T >::empty(), v_array< T >::end(), id(), label_data::initial, ect::k, example::l, label_data::label, MULTICLASS::label_t::label, v_array< T >::last(), ect::last_pair, LEARNER::learner< T, E >::learn(), label_type::mc, polylabel::multi, example::pred, v_array< T >::push_back(), polyprediction::scalar, polylabel::simple, v_array< T >::size(), ect::tournaments_won, ect::tree_height, label_data::weight, and example::weight.
Referenced by learn().
bool exists | ( | v_array< size_t > | db | ) |
size_t final_depth | ( | size_t | eliminations | ) |
Definition at line 77 of file ect.cc.
Referenced by create_circuit().
void learn | ( | ect & | e, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 328 of file ect.cc.
References ect_train(), example::l, MULTICLASS::label_t::label, label_type::mc, polylabel::multi, polyprediction::multiclass, example::pred, and predict().
Referenced by ect_setup().
Definition at line 87 of file ect.cc.
Referenced by create_circuit().
void predict | ( | ect & | e, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 319 of file ect.cc.
References ect_predict(), ect::k, example::l, MULTICLASS::label_t::label, label_type::mc, polylabel::multi, polyprediction::multiclass, and example::pred.
Referenced by ect_setup(), and learn().