Vowpal Wabbit
|
Go to the source code of this file.
Functions | |
void | count_label (shared_data *sd, float l) |
bool | get_best_constant (vw &all, float &best_constant, float &best_constant_loss) |
|
inline |
Definition at line 5 of file best_constant.h.
References shared_data::first_observed_label, get_best_constant(), shared_data::is_more_than_two_labels_observed, and shared_data::second_observed_label.
Referenced by bufread_simple_label(), LabelObjectState< audit >::EndObject(), and parse_simple_label().
bool get_best_constant | ( | vw & | all, |
float & | best_constant, | ||
float & | best_constant_loss | ||
) |
Definition at line 3 of file best_constant.cc.
References shared_data::first_observed_label, VW::config::options_i::get_typed_option(), loss_function::getLoss(), loss_function::getType(), shared_data::is_more_than_two_labels_observed, vw::loss, vw::options, vw::sd, shared_data::second_observed_label, VW::config::options_i::was_supplied(), shared_data::weighted_labeled_examples, and shared_data::weighted_labels.
Referenced by count_label(), and VW::finish().