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

Classes

struct  VW::polylabel
 
struct  VW::polyprediction
 
struct  VW::example
 
struct  VW::flat_example
 

Namespaces

 VW
 
 VW::model_utils
 

Macros

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

Typedefs

using VW::example_factory_t = example &(*)(void *)
 
using namespace = VW::polylabel
 

Functions

void VW::copy_example_data (example *dst, const example *src)
 
void VW::setup_example (VW::workspace &all, example *ae)
 
std::string VW::to_string (const v_array< float > &scalars, int decimal_precision=DEFAULT_FLOAT_PRECISION)
 
flat_example * VW::flatten_example (VW::workspace &all, example *ec)
 
flat_example * VW::flatten_sort_example (VW::workspace &all, example *ec)
 
void VW::free_flatten_example (flat_example *fec)
 
bool VW::example_is_newline (const example &ec)
 
bool VW::valid_ns (char c)
 
void VW::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, VW::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, VW::label_parser &lbl_parser, uint64_t parse_mask)
 
VW::flat_exampleflatten_example (VW::workspace &all, VW::example *ec)
 
VW::flat_exampleflatten_sort_example (VW::workspace &all, VW::example *ec)
 
void free_flatten_example (VW::flat_example *fec)
 
bool example_is_newline (const VW::example &ec)
 
bool valid_ns (char c)
 
void add_passthrough_feature_magic (VW::example &ec, uint64_t magic, uint64_t i, float x)
 

Macro Definition Documentation

◆ add_passthrough_feature

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

Typedef Documentation

◆ namespace

Function Documentation

◆ add_passthrough_feature_magic()

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

◆ example_is_newline()

bool example_is_newline ( const VW::example ec)
inline

◆ flatten_example()

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

◆ flatten_sort_example()

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

◆ free_flatten_example()

void free_flatten_example ( VW::flat_example fec)
inline

◆ valid_ns()

bool valid_ns ( char  c)
inline