Vowpal Wabbit
|
#include <cstring>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include "cache.h"
#include "accumulate.h"
#include "best_constant.h"
Go to the source code of this file.
Functions | |
char * | bufread_simple_label (shared_data *sd, label_data *ld, char *c) |
size_t | read_cached_simple_label (shared_data *sd, void *v, io_buf &cache) |
float | get_weight (void *v) |
char * | bufcache_simple_label (label_data *ld, char *c) |
void | cache_simple_label (void *v, io_buf &cache) |
void | default_simple_label (void *v) |
bool | test_label (void *v) |
void | delete_simple_label (void *) |
void | parse_simple_label (parser *, shared_data *sd, void *v, v_array< substring > &words) |
void | print_update (vw &all, example &ec) |
void | output_and_account_example (vw &all, example &ec) |
void | return_simple_example (vw &all, void *, example &ec) |
bool | summarize_holdout_set (vw &all, size_t &no_win_counter) |
Variables | |
label_parser | simple_label |
char* bufcache_simple_label | ( | label_data * | ld, |
char * | c | ||
) |
Definition at line 43 of file simple_label.cc.
References c, label_data::initial, label_data::label, and label_data::weight.
Referenced by cache_simple_label().
char* bufread_simple_label | ( | shared_data * | sd, |
label_data * | ld, | ||
char * | c | ||
) |
Definition at line 10 of file simple_label.cc.
References c, count_label(), label_data::initial, label_data::label, and label_data::weight.
Referenced by read_cached_simple_label().
void cache_simple_label | ( | void * | v, |
io_buf & | cache | ||
) |
Definition at line 54 of file simple_label.cc.
References io_buf::buf_write(), bufcache_simple_label(), c, label_data::initial, label_data::label, and label_data::weight.
void default_simple_label | ( | void * | v | ) |
Definition at line 62 of file simple_label.cc.
References label_data::initial, label_data::label, and label_data::weight.
void delete_simple_label | ( | void * | ) |
Definition at line 76 of file simple_label.cc.
float get_weight | ( | void * | v | ) |
Definition at line 37 of file simple_label.cc.
References label_data::weight.
Definition at line 119 of file simple_label.cc.
References f, vw::final_prediction_sink, example::l, label_data::label, example::loss, example::num_features, example::partial_prediction, example::pred, vw::print, print_update(), vw::raw_prediction, polyprediction::scalar, vw::sd, polylabel::simple, v_array< T >::size(), example::tag, example::test_only, shared_data::update(), example::weight, and shared_data::weighted_labels.
Referenced by return_simple_example().
void parse_simple_label | ( | parser * | , |
shared_data * | sd, | ||
void * | v, | ||
v_array< substring > & | words | ||
) |
Definition at line 78 of file simple_label.cc.
References count_label(), float_of_substring(), label_data::initial, label_data::label, print_substring(), v_array< T >::size(), and label_data::weight.
Definition at line 109 of file simple_label.cc.
References vw::bfgs, vw::current_pass, shared_data::dump_interval, vw::holdout_set_off, example::l, label_data::label, example::num_features, example::pred, shared_data::print_update(), vw::progress_add, vw::progress_arg, vw::quiet, polyprediction::scalar, vw::sd, polylabel::simple, shared_data::weighted_labeled_examples, and shared_data::weighted_unlabeled_examples.
Referenced by output_and_account_example().
size_t read_cached_simple_label | ( | shared_data * | sd, |
void * | v, | ||
io_buf & | cache | ||
) |
Definition at line 25 of file simple_label.cc.
References io_buf::buf_read(), bufread_simple_label(), c, label_data::initial, label_data::label, and label_data::weight.
Definition at line 137 of file simple_label.cc.
References VW::finish_example(), and output_and_account_example().
Referenced by finish_example(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::init_learner(), and receive_result().
bool summarize_holdout_set | ( | vw & | all, |
size_t & | no_win_counter | ||
) |
Definition at line 143 of file simple_label.cc.
References accumulate_scalar(), vw::all_reduce, vw::current_pass, f, shared_data::holdout_best_loss, shared_data::holdout_best_pass, shared_data::holdout_sum_loss_since_last_pass, vw::sd, and shared_data::weighted_holdout_examples_since_last_pass.
Referenced by GD::end_pass(), and end_pass().
bool test_label | ( | void * | v | ) |
Definition at line 70 of file simple_label.cc.
References label_data::label.
Referenced by CB_ALGS::output_example(), CB_EXPLORE::output_example(), output_example(), CSOAA::output_example(), CSOAA::output_rank_example(), and CSOAA::test_ldf_sequence().
label_parser simple_label |
Definition at line 106 of file simple_label.cc.
Referenced by baseline_setup(), CSOAA::do_actual_learning_oaa(), CSOAA::do_actual_learning_wap(), CSOAA::make_single_prediction(), parser::parser(), and baseline::~baseline().