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

#include <shared_data.h>

Public Member Functions

 shared_data ()
 
 ~shared_data ()=default
 
 shared_data (const shared_data &other)
 
shared_dataoperator= (const shared_data &other)
 
 shared_data (shared_data &&other) noexcept
 
shared_dataoperator= (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)
 

Public Attributes

size_t queries = 0
 
uint64_t example_number = 0
 
uint64_t total_features = 0
 
double t = 0.0
 
double weighted_labeled_examples = 0.0
 
double old_weighted_labeled_examples = 0.0
 
double weighted_unlabeled_examples = 0.0
 
double weighted_labels = 0.0
 
double sum_loss = 0.0
 
double sum_loss_since_last_dump = 0.0
 
float dump_interval = 1.
 
double gravity = 0.0
 
double contraction = 1.
 
float min_label = 0.f
 
float max_label = 0.f
 
std::unique_ptr< VW::named_labelsldict
 
double weighted_holdout_examples = 0.0
 
double weighted_holdout_examples_since_last_dump = 0.0
 
double holdout_sum_loss_since_last_dump = 0.0
 
double holdout_sum_loss = 0.0
 
double holdout_best_loss = 0.0
 
double weighted_holdout_examples_since_last_pass = 0.0
 
double holdout_sum_loss_since_last_pass = 0.0
 
size_t holdout_best_pass = 0
 
bool report_multiclass_log_loss = false
 
double multiclass_log_loss = 0.0
 
double holdout_multiclass_log_loss = 0.0
 
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
 

Constructor & Destructor Documentation

shared_data::shared_data ( )
shared_data::~shared_data ( )
default
shared_data::shared_data ( const shared_data other)
shared_data::shared_data ( shared_data &&  other)
noexcept

Member Function Documentation

shared_data& shared_data::operator= ( const shared_data other)
shared_data& shared_data::operator= ( 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

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 = 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
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 = 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

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