Vowpal Wabbit
|
#include <shared_data.h>
Public Member Functions | |
shared_data () | |
~shared_data ()=default | |
shared_data (const shared_data &other) | |
shared_data & | operator= (const shared_data &other) |
shared_data (shared_data &&other) noexcept | |
shared_data & | operator= (shared_data &&other) noexcept |
double | weighted_examples () const |
void | update (bool test_example, bool labeled_example, float loss, float weight, size_t num_features) |
void | update_dump_interval (bool progress_add, float progress_arg) |
void | print_update_header (std::ostream &trace_message) |
progressive validation header More... | |
void | print_update (std::ostream &output_stream, bool holdout_set_off, size_t current_pass, float label, float prediction, size_t num_features, bool progress_add, float progress_arg) |
void | print_update (std::ostream &output_stream, bool holdout_set_off, size_t current_pass, uint32_t label, uint32_t prediction, size_t num_features, bool progress_add, float progress_arg) |
void | print_update (std::ostream &output_stream, bool holdout_set_off, size_t current_pass, const std::string &label, uint32_t prediction, size_t num_features, bool progress_add, float progress_arg) |
void | print_update (std::ostream &output_stream, bool holdout_set_off, size_t current_pass, const std::string &label, const std::string &prediction, size_t num_features, bool progress_add, float progress_arg) |
Static Public Attributes | |
static constexpr int | col_avg_loss = 8 |
static constexpr int | prec_avg_loss = 6 |
static constexpr int | col_since_last = 8 |
static constexpr int | prec_since_last = 6 |
static constexpr int | col_example_counter = 12 |
static constexpr int | col_example_weight = col_example_counter + 2 |
static constexpr int | prec_example_weight = 1 |
static constexpr int | col_current_label = 8 |
static constexpr int | prec_current_label = 4 |
static constexpr int | col_current_predict = 8 |
static constexpr int | prec_current_predict = 4 |
static constexpr int | col_current_features = 8 |
shared_data::shared_data | ( | ) |
|
default |
shared_data::shared_data | ( | const shared_data & | other | ) |
|
noexcept |
shared_data& shared_data::operator= | ( | const shared_data & | other | ) |
|
noexcept |
void shared_data::print_update | ( | std::ostream & | output_stream, |
bool | holdout_set_off, | ||
size_t | current_pass, | ||
float | label, | ||
float | prediction, | ||
size_t | num_features, | ||
bool | progress_add, | ||
float | progress_arg | ||
) |
void shared_data::print_update | ( | std::ostream & | output_stream, |
bool | holdout_set_off, | ||
size_t | current_pass, | ||
uint32_t | label, | ||
uint32_t | prediction, | ||
size_t | num_features, | ||
bool | progress_add, | ||
float | progress_arg | ||
) |
void shared_data::print_update | ( | std::ostream & | output_stream, |
bool | holdout_set_off, | ||
size_t | current_pass, | ||
const std::string & | label, | ||
uint32_t | prediction, | ||
size_t | num_features, | ||
bool | progress_add, | ||
float | progress_arg | ||
) |
void shared_data::print_update | ( | std::ostream & | output_stream, |
bool | holdout_set_off, | ||
size_t | current_pass, | ||
const std::string & | label, | ||
const std::string & | prediction, | ||
size_t | num_features, | ||
bool | progress_add, | ||
float | progress_arg | ||
) |
void shared_data::print_update_header | ( | std::ostream & | trace_message | ) |
progressive validation header
void shared_data::update | ( | bool | test_example, |
bool | labeled_example, | ||
float | loss, | ||
float | weight, | ||
size_t | num_features | ||
) |
void shared_data::update_dump_interval | ( | bool | progress_add, |
float | progress_arg | ||
) |
double shared_data::weighted_examples | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
double shared_data::contraction = 1. |
float shared_data::dump_interval = 1. |
uint64_t shared_data::example_number = 0 |
std::atomic<float> shared_data::first_observed_label |
double shared_data::gravity = 0.0 |
double shared_data::holdout_best_loss = 0.0 |
size_t shared_data::holdout_best_pass = 0 |
double shared_data::holdout_multiclass_log_loss = 0.0 |
double shared_data::holdout_sum_loss = 0.0 |
double shared_data::holdout_sum_loss_since_last_dump = 0.0 |
double shared_data::holdout_sum_loss_since_last_pass = 0.0 |
std::atomic<bool> shared_data::is_more_than_two_labels_observed |
std::unique_ptr<VW::named_labels> shared_data::ldict |
float shared_data::max_label = 0.f |
float shared_data::min_label = 0.f |
double shared_data::multiclass_log_loss = 0.0 |
double shared_data::old_weighted_labeled_examples = 0.0 |
|
static |
|
static |
|
static |
|
static |
|
static |
size_t shared_data::queries = 0 |
bool shared_data::report_multiclass_log_loss = false |
std::atomic<float> shared_data::second_observed_label |
double shared_data::sum_loss = 0.0 |
double shared_data::sum_loss_since_last_dump = 0.0 |
double shared_data::t = 0.0 |
uint64_t shared_data::total_features = 0 |
double shared_data::weighted_holdout_examples = 0.0 |
double shared_data::weighted_holdout_examples_since_last_dump = 0.0 |
double shared_data::weighted_holdout_examples_since_last_pass = 0.0 |
double shared_data::weighted_labeled_examples = 0.0 |
double shared_data::weighted_labels = 0.0 |
double shared_data::weighted_unlabeled_examples = 0.0 |