Vowpal Wabbit
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
shared_data Struct Reference

#include <global_data.h>

Public Member Functions

double weighted_examples ()
 
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 (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 (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 (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 (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)
 

Public Attributes

size_t queries
 
uint64_t example_number
 
uint64_t total_features
 
double t
 
double weighted_labeled_examples
 
double old_weighted_labeled_examples
 
double weighted_unlabeled_examples
 
double weighted_labels
 
double sum_loss
 
double sum_loss_since_last_dump
 
float dump_interval
 
double gravity
 
double contraction
 
float min_label
 
float max_label
 
VW::named_labelsldict
 
double weighted_holdout_examples
 
double weighted_holdout_examples_since_last_dump
 
double holdout_sum_loss_since_last_dump
 
double holdout_sum_loss
 
double holdout_best_loss
 
double weighted_holdout_examples_since_last_pass
 
double holdout_sum_loss_since_last_pass
 
size_t holdout_best_pass
 
bool report_multiclass_log_loss
 
double multiclass_log_loss
 
double holdout_multiclass_log_loss
 
std::atomic< bool > is_more_than_two_labels_observed
 
std::atomic< float > first_observed_label
 
std::atomic< float > second_observed_label
 

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
 

Member Function Documentation

void shared_data::print_update ( bool  holdout_set_off,
size_t  current_pass,
float  label,
float  prediction,
size_t  num_features,
bool  progress_add,
float  progress_arg 
)
inline
void shared_data::print_update ( bool  holdout_set_off,
size_t  current_pass,
uint32_t  label,
uint32_t  prediction,
size_t  num_features,
bool  progress_add,
float  progress_arg 
)
inline
void shared_data::print_update ( 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 
)
inline
void shared_data::print_update ( 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 
)
inline
void shared_data::update ( bool  test_example,
bool  labeled_example,
float  loss,
float  weight,
size_t  num_features 
)
inline
void shared_data::update_dump_interval ( bool  progress_add,
float  progress_arg 
)
inline
double shared_data::weighted_examples ( )
inline

Member Data Documentation

constexpr int shared_data::col_avg_loss = 8
static
constexpr int shared_data::col_current_features = 8
static
constexpr int shared_data::col_current_label = 8
static
constexpr int shared_data::col_current_predict = 8
static
constexpr int shared_data::col_example_counter = 12
static
constexpr int shared_data::col_example_weight = col_example_counter + 2
static
constexpr int shared_data::col_since_last = 8
static
double shared_data::contraction
float shared_data::dump_interval
uint64_t shared_data::example_number
std::atomic<float> shared_data::first_observed_label
double shared_data::gravity
double shared_data::holdout_best_loss
size_t shared_data::holdout_best_pass
double shared_data::holdout_multiclass_log_loss
double shared_data::holdout_sum_loss
double shared_data::holdout_sum_loss_since_last_dump
double shared_data::holdout_sum_loss_since_last_pass
std::atomic<bool> shared_data::is_more_than_two_labels_observed
VW::named_labels* shared_data::ldict
float shared_data::max_label
float shared_data::min_label
double shared_data::multiclass_log_loss
double shared_data::old_weighted_labeled_examples
constexpr int shared_data::prec_avg_loss = 6
static
constexpr int shared_data::prec_current_label = 4
static
constexpr int shared_data::prec_current_predict = 4
static
constexpr int shared_data::prec_example_weight = 1
static
constexpr int shared_data::prec_since_last = 6
static
size_t shared_data::queries
bool shared_data::report_multiclass_log_loss
std::atomic<float> shared_data::second_observed_label
double shared_data::sum_loss
double shared_data::sum_loss_since_last_dump
double shared_data::t
uint64_t shared_data::total_features
double shared_data::weighted_holdout_examples
double shared_data::weighted_holdout_examples_since_last_dump
double shared_data::weighted_holdout_examples_since_last_pass
double shared_data::weighted_labeled_examples
double shared_data::weighted_labels
double shared_data::weighted_unlabeled_examples

The documentation for this struct was generated from the following file: