Vowpal Wabbit
Classes | Namespaces | Macros | Typedefs | Functions
example.h File Reference
#include "v_array.h"
#include "no_label.h"
#include "simple_label.h"
#include "multiclass.h"
#include "multilabel.h"
#include "cost_sensitive.h"
#include "cb.h"
#include "constant.h"
#include "feature_group.h"
#include "action_score.h"
#include "example_predict.h"
#include "conditional_contextual_bandit.h"
#include "continuous_actions_reduction_features.h"
#include "ccb_label.h"
#include "slates_label.h"
#include "decision_scores.h"
#include "cb_continuous_label.h"
#include "prob_dist_cont.h"
#include "active_multiclass_prediction.h"
#include "cache.h"
#include <cstdint>
#include <vector>
#include <iostream>

Classes

struct  polylabel
 
struct  polyprediction
 
struct  example
 
struct  flat_example
 

Namespaces

 VW
 
 VW::model_utils
 

Macros

#define add_passthrough_feature(ec, i, x)   add_passthrough_feature_magic(ec, __FILE__[0] * 483901 + __FILE__[1] * 3417 + __FILE__[2] * 8490177, i, x);
 

Typedefs

typedef std::vector< example * > multi_ex
 
using VW::example_factory_t = example &(*)(void *)
 

Functions

void VW::copy_example_data (example *dst, const example *src)
 
void VW::setup_example (VW::workspace &all, example *ae)
 
float calculate_total_sum_features_squared (bool permutations, example &ec)
 
flat_exampleflatten_example (VW::workspace &all, example *ec)
 
flat_exampleflatten_sort_example (VW::workspace &all, example *ec)
 
void free_flatten_example (flat_example *fec)
 
bool example_is_newline (const example &ec)
 
bool valid_ns (char c)
 
void add_passthrough_feature_magic (example &ec, uint64_t magic, uint64_t i, float x)
 
void VW::return_multiple_example (VW::workspace &all, v_array< example *> &examples)
 
size_t VW::model_utils::read_model_field (io_buf &io, flat_example &fe, label_parser &lbl_parser)
 
size_t VW::model_utils::write_model_field (io_buf &io, const flat_example &fe, const std::string &upstream_name, bool text, label_parser &lbl_parser, uint64_t parse_mask)
 
std::string simple_label_to_string (const example &ec)
 
std::string cb_label_to_string (const example &ec)
 
std::string scalar_pred_to_string (const example &ec)
 
std::string a_s_pred_to_string (const example &ec)
 
std::string prob_dist_pred_to_string (const example &ec)
 
std::string multiclass_pred_to_string (const example &ec)
 
std::string debug_depth_indent_string (const multi_ex &ec)
 
std::string debug_depth_indent_string (const example &ec)
 
std::string debug_depth_indent_string (int32_t stack_depth)
 

Macro Definition Documentation

◆ add_passthrough_feature

#define add_passthrough_feature (   ec,
  i,
 
)    add_passthrough_feature_magic(ec, __FILE__[0] * 483901 + __FILE__[1] * 3417 + __FILE__[2] * 8490177, i, x);

Typedef Documentation

◆ multi_ex

typedef std::vector<example*> multi_ex

Function Documentation

◆ a_s_pred_to_string()

std::string a_s_pred_to_string ( const example ec)

◆ add_passthrough_feature_magic()

void add_passthrough_feature_magic ( example ec,
uint64_t  magic,
uint64_t  i,
float  x 
)
inline

◆ calculate_total_sum_features_squared()

float calculate_total_sum_features_squared ( bool  permutations,
example ec 
)

◆ cb_label_to_string()

std::string cb_label_to_string ( const example ec)

◆ debug_depth_indent_string() [1/3]

std::string debug_depth_indent_string ( const multi_ex ec)

◆ debug_depth_indent_string() [2/3]

std::string debug_depth_indent_string ( const example ec)

◆ debug_depth_indent_string() [3/3]

std::string debug_depth_indent_string ( int32_t  stack_depth)

◆ example_is_newline()

bool example_is_newline ( const example ec)
inline

◆ flatten_example()

flat_example* flatten_example ( VW::workspace all,
example ec 
)

◆ flatten_sort_example()

flat_example* flatten_sort_example ( VW::workspace all,
example ec 
)

◆ free_flatten_example()

void free_flatten_example ( flat_example fec)

◆ multiclass_pred_to_string()

std::string multiclass_pred_to_string ( const example ec)

◆ prob_dist_pred_to_string()

std::string prob_dist_pred_to_string ( const example ec)

◆ scalar_pred_to_string()

std::string scalar_pred_to_string ( const example ec)

◆ simple_label_to_string()

std::string simple_label_to_string ( const example ec)

◆ valid_ns()

bool valid_ns ( char  c)
inline