|
Vowpal Wabbit
|
#include <cmath>#include <errno.h>#include <memory>#include "reductions.h"#include "rand48.h"#include "float.h"#include "vw.h"Go to the source code of this file.
Classes | |
| struct | active_cover |
Functions | |
| float | sign (float w) |
| bool | dis_test (vw &all, example &ec, single_learner &base, float, float threshold) |
| float | get_threshold (float sum_loss, float t, float c0, float alpha) |
| float | get_pmin (float sum_loss, float t) |
| float | query_decision (active_cover &a, single_learner &l, example &ec, float prediction, float pmin, bool in_dis) |
| template<bool is_learn> | |
| void | predict_or_learn_active_cover (active_cover &a, single_learner &base, example &ec) |
| base_learner * | active_cover_setup (options_i &options, vw &all) |
| base_learner* active_cover_setup | ( | options_i & | options, |
| vw & | all | ||
| ) |
Definition at line 230 of file active_cover.cc.
References add(), VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), f, vw::get_random_state(), LEARNER::init_learner(), LEARNER::make_base(), VW::config::make_option(), setup_base(), THROW, and VW::config::options_i::was_supplied().
Referenced by parse_reductions().
| bool dis_test | ( | vw & | all, |
| example & | ec, | ||
| single_learner & | base, | ||
| float | , | ||
| float | threshold | ||
| ) |
Definition at line 43 of file active_cover.cc.
References example::confidence, example::pred, polyprediction::scalar, vw::sd, LEARNER::learner< T, E >::sensitivity(), shared_data::t, and example::weight.
Referenced by predict_or_learn_active_cover().
| float get_pmin | ( | float | sum_loss, |
| float | t | ||
| ) |
Definition at line 76 of file active_cover.cc.
References f.
Referenced by predict_or_learn_active_cover().
| float get_threshold | ( | float | sum_loss, |
| float | t, | ||
| float | c0, | ||
| float | alpha | ||
| ) |
Definition at line 62 of file active_cover.cc.
References f.
Referenced by predict_or_learn_active_cover().
| void predict_or_learn_active_cover | ( | active_cover & | a, |
| single_learner & | base, | ||
| example & | ec | ||
| ) |
Definition at line 132 of file active_cover.cc.
References active_cover::active_c0, active_cover::all, active_cover::alpha, active_cover::beta_scale, active_cover::cover_size, dis_test(), f, get_pmin(), get_threshold(), example::l, label_data::label, active_cover::lambda_d, active_cover::lambda_n, LEARNER::learner< T, E >::learn(), example::pred, LEARNER::learner< T, E >::predict(), shared_data::queries, query_decision(), polyprediction::scalar, vw::sd, sign(), polylabel::simple, shared_data::sum_loss, shared_data::t, and example::weight.
| float query_decision | ( | active_cover & | a, |
| single_learner & | l, | ||
| example & | ec, | ||
| float | prediction, | ||
| float | pmin, | ||
| bool | in_dis | ||
| ) |
Definition at line 89 of file active_cover.cc.
References active_cover::_random_state, active_cover::all, active_cover::cover_size, active_cover::lambda_d, active_cover::lambda_n, active_cover::oracular, example::pred, LEARNER::learner< T, E >::predict(), polyprediction::scalar, vw::sd, sign(), shared_data::t, and example::weight.
Referenced by predict_or_learn_active_cover().
|
inline |
Definition at line 12 of file active_cover.cc.
References f.
Referenced by predict_or_learn_active_cover(), and query_decision().
1.8.13