Vowpal Wabbit
|
#include <cb_explore.h>
Public Types | |
using | end_fptr_type = void(*)(vw &, void *, void *) |
using | finish_fptr_type = void(*)(void *) |
Public Member Functions | |
void | learn (E &ec, size_t i=0) |
void | predict (E &ec, size_t i=0) |
void | multipredict (E &ec, size_t lo, size_t count, polyprediction *pred, bool finalize_predictions) |
template<class L > | |
void | set_predict (void(*u)(T &, L &, E &)) |
template<class L > | |
void | set_learn (void(*u)(T &, L &, E &)) |
template<class L > | |
void | set_multipredict (void(*u)(T &, L &, E &, size_t, size_t, polyprediction *, bool)) |
void | update (E &ec, size_t i=0) |
template<class L > | |
void | set_update (void(*u)(T &data, L &base, E &)) |
void | set_sensitivity (float(*u)(T &data, base_learner &base, example &)) |
float | sensitivity (example &ec, size_t i=0) |
void | save_load (io_buf &io, const bool read, const bool text) |
void | set_save_load (void(*sl)(T &, io_buf &, bool, bool)) |
void | set_finish (void(*f)(T &)) |
void | finish () |
void | end_pass () |
void | set_end_pass (void(*f)(T &)) |
void | end_examples () |
void | set_end_examples (void(*f)(T &)) |
void | init_driver () |
void | set_init_driver (void(*f)(T &)) |
void | finish_example (vw &all, E &ec) |
void | set_finish_example (void(*f)(vw &all, T &, E &)) |
Static Public Member Functions | |
template<class L > | |
static learner< T, E > & | init_learner (T *dat, L *base, void(*learn)(T &, L &, E &), void(*predict)(T &, L &, E &), size_t ws, prediction_type::prediction_type_t pred_type) |
Public Attributes | |
prediction_type::prediction_type_t | pred_type |
size_t | weights |
size_t | increment |
bool | is_multiline |
Private Member Functions | |
learner () | |
Private Attributes | |
func_data | init_fd |
learn_data | learn_fd |
sensitivity_data | sensitivity_fd |
finish_example_data | finish_example_fd |
save_load_data | save_load_fd |
func_data | end_pass_fd |
func_data | end_examples_fd |
func_data | finisher_fd |
std::shared_ptr< void > | learner_data |
Definition at line 11 of file cb_explore.h.
using LEARNER::learner< T, E >::end_fptr_type = void (*)(vw&, void*, void*) |
using LEARNER::learner< T, E >::finish_fptr_type = void (*)(void*) |
|
inlineprivate |
|
inline |
Definition at line 289 of file learner.h.
Referenced by LEARNER::drain_examples(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::end_examples(), and LEARNER::generic_driver_onethread().
|
inline |
Definition at line 280 of file learner.h.
Referenced by LEARNER::end_pass(), and LEARNER::learner< CB_EXPLORE::cb_explore, example >::end_pass().
|
inline |
Definition at line 266 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::finish(), and VW::finish().
|
inline |
Definition at line 302 of file learner.h.
Referenced by vw::finish_example(), LEARNER::learn_ex(), and LEARNER::learn_multi_ex().
|
inline |
|
inlinestatic |
Definition at line 314 of file learner.h.
|
inline |
Definition at line 160 of file learner.h.
Referenced by GEN_CS::call_cs_ldf(), do_actual_learning_ldf(), CSOAA::do_actual_learning_oaa(), CSOAA::do_actual_learning_wap(), ect_predict(), ect_train(), ExpReplay::end_pass(), Search::generate_training_example(), CB_ALGS::get_cost_pred(), CSOAA::inner_loop(), inner_loop(), VW::autolink::learn(), VW::topk::learn(), recall_tree_ns::learn(), vw::learn(), learn(), memory_tree_ns::learn_at_leaf_random(), learn_bandit_adf(), learn_randomized(), learn_sup_adf(), LEARNER::multiline_learn_or_predict(), VW::shared_feature_merger::predict_or_learn(), ExpReplay::predict_or_learn(), CLASSWEIGHTS::predict_or_learn(), CB_ALGS::predict_or_learn(), MWT::predict_or_learn(), predict_or_learn(), MARGINAL::predict_or_learn(), predict_or_learn_active(), predict_or_learn_active_cover(), predict_or_learn_adaptive(), predict_or_learn_adf(), CB_EXPLORE::predict_or_learn_bag(), CB_EXPLORE::predict_or_learn_cover(), CB_EXPLORE::predict_or_learn_first(), CB_EXPLORE::predict_or_learn_greedy(), predict_or_learn_logistic(), predict_or_learn_multi(), predict_or_learn_simulation(), predict_or_learn_with_confidence(), memory_tree_ns::return_reward_from_node(), memory_tree_ns::single_query_and_learn(), train_node(), recall_tree_ns::train_node(), memory_tree_ns::train_node(), and memory_tree_ns::train_one_against_some_at_leaf().
|
inline |
Definition at line 178 of file learner.h.
Referenced by multipredict(), ExpReplay::multipredict(), CSOAA::predict_or_learn(), predict_or_learn(), and predict_or_learn_multi().
|
inline |
Definition at line 169 of file learner.h.
Referenced by GEN_CS::call_cs_ldf(), memory_tree_ns::compute_hamming_loss_via_oas(), do_actual_learning_ldf(), find_cost_range(), CB_ALGS::get_cost_pred(), CSOAA::inner_loop(), inner_loop(), vw::learn(), CSOAA::make_single_prediction(), LEARNER::multiline_learn_or_predict(), recall_tree_ns::oas_predict(), memory_tree_ns::pick_nearest(), VW::autolink::predict(), VW::topk::predict(), predict(), vw::predict(), memory_tree_ns::predict(), predict_bandit_adf(), recall_tree_ns::predict_from(), VW::shared_feature_merger::predict_or_learn(), ExpReplay::predict_or_learn(), CLASSWEIGHTS::predict_or_learn(), CB_ALGS::predict_or_learn(), MWT::predict_or_learn(), predict_or_learn(), MARGINAL::predict_or_learn(), predict_or_learn_active(), predict_or_learn_active_cover(), predict_or_learn_adaptive(), predict_or_learn_adf(), CB_EXPLORE::predict_or_learn_bag(), CB_EXPLORE::predict_or_learn_first(), CB_EXPLORE::predict_or_learn_greedy(), predict_or_learn_logistic(), predict_or_learn_multi(), predict_or_learn_simulation(), predict_or_learn_with_confidence(), predict_sublearner_adf(), VW::autolink::prepare_example(), query_decision(), memory_tree_ns::return_reward_from_node(), memory_tree_ns::route_to_leaf(), sensitivity(), Search::single_prediction_LDF(), Search::single_prediction_notLDF(), memory_tree_ns::split_leaf(), train_node(), recall_tree_ns::train_node(), memory_tree_ns::train_node(), VW_Predict(), and VW_PredictCostSensitive().
|
inline |
Definition at line 251 of file learner.h.
Referenced by dump_regressor(), load_input_model(), parse_mask_regressor_args(), and LEARNER::learner< CB_EXPLORE::cb_explore, example >::save_load().
|
inline |
Definition at line 242 of file learner.h.
Referenced by dis_test(), find_cost_range(), VW::cb_explore_adf::regcb::cb_explore_adf_regcb::get_cost_ranges(), predict_or_learn_active(), predict_or_learn_simulation(), predict_or_learn_with_confidence(), LEARNER::recur_sensitivity(), and sensitivity().
|
inline |
Definition at line 295 of file learner.h.
Referenced by audit_regressor_setup(), lda_setup(), and Search::setup().
|
inline |
Definition at line 286 of file learner.h.
Referenced by CSOAA::csldf_setup(), ExpReplay::expreplay_setup(), gd_mf_setup(), lda_setup(), lrq_setup(), memory_tree_setup(), nn_setup(), GD::setup(), Search::setup(), and stagewise_poly_setup().
|
inline |
Definition at line 265 of file learner.h.
Referenced by audit_regressor_setup(), explore_eval_setup(), mf_setup(), Search::setup(), and warm_cb_setup().
|
inline |
Definition at line 307 of file learner.h.
Referenced by active_setup(), audit_regressor_setup(), bs_setup(), cb_adf_setup(), cb_algs_setup(), cb_explore_setup(), cbifyldf_setup(), CCB::ccb_explore_adf_setup(), confidence_setup(), cs_active_setup(), CSOAA::csldf_setup(), explore_eval_setup(), LEARNER::init_cost_sensitive_learner(), LEARNER::init_multiclass_learner(), lda_setup(), multilabel_oaa_setup(), mwt_setup(), nn_setup(), oaa_setup(), OjaNewton_setup(), Search::setup(), and stagewise_poly_setup().
|
inline |
Definition at line 299 of file learner.h.
Referenced by audit_regressor_setup().
|
inline |
|
inline |
Definition at line 217 of file learner.h.
Referenced by nn_setup(), scorer_setup(), and GD::setup().
|
inline |
|
inline |
Definition at line 257 of file learner.h.
Referenced by boosting_setup(), cb_adf_setup(), gd_mf_setup(), kernel_svm_setup(), lda_setup(), memory_tree_setup(), mwt_setup(), OjaNewton_setup(), recall_tree_setup(), GD::setup(), stagewise_poly_setup(), and svrg_setup().
|
inline |
Definition at line 237 of file learner.h.
Referenced by baseline_setup(), and GD::setup().
|
inline |
|
inline |
Definition at line 222 of file learner.h.
Referenced by predict_or_learn(), predict_or_learn_multi(), and update().
|
private |
Definition at line 145 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
|
private |
Definition at line 144 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
|
private |
Definition at line 142 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
|
private |
Definition at line 146 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
size_t LEARNER::learner< T, E >::increment |
Definition at line 153 of file learner.h.
Referenced by init_driver(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner(), and parse_sources().
|
private |
Definition at line 139 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
bool LEARNER::learner< T, E >::is_multiline |
Definition at line 154 of file learner.h.
Referenced by LEARNER::as_multiline(), LEARNER::as_singleline(), LEARNER::generic_driver_onethread(), and LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
|
private |
Definition at line 140 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
|
private |
Definition at line 148 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
prediction_type::prediction_type_t LEARNER::learner< T, E >::pred_type |
Definition at line 149 of file learner.h.
Referenced by classweight_setup(), and LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
|
private |
Definition at line 143 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
|
private |
Definition at line 141 of file learner.h.
Referenced by LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().
size_t LEARNER::learner< T, E >::weights |
Definition at line 152 of file learner.h.
Referenced by init_driver(), and LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner().