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 ()=default
 
 ~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
 
bool is_more_than_two_labels_observed = false
 
float first_observed_label = FLT_MAX
 
float second_observed_label = FLT_MAX
 

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() [1/3]

shared_data::shared_data ( )
default

◆ ~shared_data()

shared_data::~shared_data ( )
default

◆ shared_data() [2/3]

shared_data::shared_data ( const shared_data other)

◆ shared_data() [3/3]

shared_data::shared_data ( shared_data &&  other)
noexcept

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ print_update() [1/4]

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 
)

◆ print_update() [2/4]

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 
)

◆ print_update() [3/4]

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 
)

◆ print_update() [4/4]

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 
)

◆ print_update_header()

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

progressive validation header

◆ update()

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

◆ update_dump_interval()

void shared_data::update_dump_interval ( bool  progress_add,
float  progress_arg 
)

◆ weighted_examples()

double shared_data::weighted_examples ( ) const

Member Data Documentation

◆ col_avg_loss

constexpr int shared_data::col_avg_loss = 8
static

◆ col_current_features

constexpr int shared_data::col_current_features = 8
static

◆ col_current_label

constexpr int shared_data::col_current_label = 8
static

◆ col_current_predict

constexpr int shared_data::col_current_predict = 8
static

◆ col_example_counter

constexpr int shared_data::col_example_counter = 12
static

◆ col_example_weight

constexpr int shared_data::col_example_weight = col_example_counter + 2
static

◆ col_since_last

constexpr int shared_data::col_since_last = 8
static

◆ contraction

double shared_data::contraction = 1.

◆ dump_interval

float shared_data::dump_interval = 1.

◆ example_number

uint64_t shared_data::example_number = 0

◆ first_observed_label

float shared_data::first_observed_label = FLT_MAX

◆ gravity

double shared_data::gravity = 0.0

◆ holdout_best_loss

double shared_data::holdout_best_loss = 0.0

◆ holdout_best_pass

size_t shared_data::holdout_best_pass = 0

◆ holdout_multiclass_log_loss

double shared_data::holdout_multiclass_log_loss = 0.0

◆ holdout_sum_loss

double shared_data::holdout_sum_loss = 0.0

◆ holdout_sum_loss_since_last_dump

double shared_data::holdout_sum_loss_since_last_dump = 0.0

◆ holdout_sum_loss_since_last_pass

double shared_data::holdout_sum_loss_since_last_pass = 0.0

◆ is_more_than_two_labels_observed

bool shared_data::is_more_than_two_labels_observed = false

◆ ldict

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

◆ max_label

float shared_data::max_label = 0.f

◆ min_label

float shared_data::min_label = 0.f

◆ multiclass_log_loss

double shared_data::multiclass_log_loss = 0.0

◆ old_weighted_labeled_examples

double shared_data::old_weighted_labeled_examples = 0.0

◆ prec_avg_loss

constexpr int shared_data::prec_avg_loss = 6
static

◆ prec_current_label

constexpr int shared_data::prec_current_label = 4
static

◆ prec_current_predict

constexpr int shared_data::prec_current_predict = 4
static

◆ prec_example_weight

constexpr int shared_data::prec_example_weight = 1
static

◆ prec_since_last

constexpr int shared_data::prec_since_last = 6
static

◆ queries

size_t shared_data::queries = 0

◆ report_multiclass_log_loss

bool shared_data::report_multiclass_log_loss = false

◆ second_observed_label

float shared_data::second_observed_label = FLT_MAX

◆ sum_loss

double shared_data::sum_loss = 0.0

◆ sum_loss_since_last_dump

double shared_data::sum_loss_since_last_dump = 0.0

◆ t

double shared_data::t = 0.0

◆ total_features

uint64_t shared_data::total_features = 0

◆ weighted_holdout_examples

double shared_data::weighted_holdout_examples = 0.0

◆ weighted_holdout_examples_since_last_dump

double shared_data::weighted_holdout_examples_since_last_dump = 0.0

◆ weighted_holdout_examples_since_last_pass

double shared_data::weighted_holdout_examples_since_last_pass = 0.0

◆ weighted_labeled_examples

double shared_data::weighted_labeled_examples = 0.0

◆ weighted_labels

double shared_data::weighted_labels = 0.0

◆ weighted_unlabeled_examples

double shared_data::weighted_unlabeled_examples = 0.0

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