Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
VW::shared_data Class Reference

#include <shared_data.h>

Public Member Functions

 shared_data ()
 
 ~shared_data ()
 
 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 ()
 
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)
 
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)
 
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)
 
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)
 
void print_summary (std::ostream &output, const shared_data &sd, const VW::loss_function &loss_func, uint64_t current_pass, bool holdout_set_off) const
 

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
 
bool is_more_than_two_labels_observed = false
 
float first_observed_label = FLT_MAX
 
float second_observed_label = FLT_MAX
 
bool progress_add = false
 
float progress_arg = 2.0
 

Constructor & Destructor Documentation

◆ shared_data() [1/3]

VW::shared_data::shared_data ( )

◆ ~shared_data()

VW::shared_data::~shared_data ( )

◆ shared_data() [2/3]

VW::shared_data::shared_data ( const shared_data other)

◆ shared_data() [3/3]

VW::shared_data::shared_data ( shared_data &&  other)
noexcept

Member Function Documentation

◆ operator=() [1/2]

shared_data & VW::shared_data::operator= ( const shared_data other)

◆ operator=() [2/2]

shared_data & VW::shared_data::operator= ( shared_data &&  other)
noexcept

◆ print_summary()

void VW::shared_data::print_summary ( std::ostream &  output,
const shared_data sd,
const VW::loss_function loss_func,
uint64_t  current_pass,
bool  holdout_set_off 
) const

◆ print_update() [1/4]

void VW::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 
)

◆ print_update() [2/4]

void VW::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 
)

◆ print_update() [3/4]

void VW::shared_data::print_update ( std::ostream &  output_stream,
bool  holdout_set_off,
size_t  current_pass,
float  label,
float  prediction,
size_t  num_features 
)

◆ print_update() [4/4]

void VW::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 
)

◆ print_update_header()

void VW::shared_data::print_update_header ( std::ostream &  trace_message)

progressive validation header

◆ update()

void VW::shared_data::update ( bool  test_example,
bool  labeled_example,
float  loss,
float  weight,
size_t  num_features 
)

◆ update_dump_interval()

void VW::shared_data::update_dump_interval ( )

◆ weighted_examples()

double VW::shared_data::weighted_examples ( ) const

Member Data Documentation

◆ contraction

double VW::shared_data::contraction = 1.

◆ dump_interval

float VW::shared_data::dump_interval = 1.

◆ example_number

uint64_t VW::shared_data::example_number = 0

◆ first_observed_label

float VW::shared_data::first_observed_label = FLT_MAX

◆ gravity

double VW::shared_data::gravity = 0.0

◆ holdout_best_loss

double VW::shared_data::holdout_best_loss = 0.0

◆ holdout_best_pass

size_t VW::shared_data::holdout_best_pass = 0

◆ holdout_multiclass_log_loss

double VW::shared_data::holdout_multiclass_log_loss = 0.0

◆ holdout_sum_loss

double VW::shared_data::holdout_sum_loss = 0.0

◆ holdout_sum_loss_since_last_dump

double VW::shared_data::holdout_sum_loss_since_last_dump = 0.0

◆ holdout_sum_loss_since_last_pass

double VW::shared_data::holdout_sum_loss_since_last_pass = 0.0

◆ is_more_than_two_labels_observed

bool VW::shared_data::is_more_than_two_labels_observed = false

◆ ldict

std::unique_ptr<VW::named_labels> VW::shared_data::ldict

◆ max_label

float VW::shared_data::max_label = 0.f

◆ min_label

float VW::shared_data::min_label = 0.f

◆ multiclass_log_loss

double VW::shared_data::multiclass_log_loss = 0.0

◆ old_weighted_labeled_examples

double VW::shared_data::old_weighted_labeled_examples = 0.0

◆ progress_add

bool VW::shared_data::progress_add = false

◆ progress_arg

float VW::shared_data::progress_arg = 2.0

◆ queries

size_t VW::shared_data::queries = 0

◆ report_multiclass_log_loss

bool VW::shared_data::report_multiclass_log_loss = false

◆ second_observed_label

float VW::shared_data::second_observed_label = FLT_MAX

◆ sum_loss

double VW::shared_data::sum_loss = 0.0

◆ sum_loss_since_last_dump

double VW::shared_data::sum_loss_since_last_dump = 0.0

◆ t

double VW::shared_data::t = 0.0

◆ total_features

uint64_t VW::shared_data::total_features = 0

◆ weighted_holdout_examples

double VW::shared_data::weighted_holdout_examples = 0.0

◆ weighted_holdout_examples_since_last_dump

double VW::shared_data::weighted_holdout_examples_since_last_dump = 0.0

◆ weighted_holdout_examples_since_last_pass

double VW::shared_data::weighted_holdout_examples_since_last_pass = 0.0

◆ weighted_labeled_examples

double VW::shared_data::weighted_labeled_examples = 0.0

◆ weighted_labels

double VW::shared_data::weighted_labels = 0.0

◆ weighted_unlabeled_examples

double VW::shared_data::weighted_unlabeled_examples = 0.0

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