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 <cstdint>
#include <vector>
#include <iostream>

Classes

struct  polylabel
 
struct  polyprediction
 
struct  example
 
struct  flat_example
 

Namespaces

 VW
 

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
 
typedef example &(* VW::example_factory_t) (void *)
 

Functions

void VW::copy_example_data (example *dst, const example *src)
 
void VW::setup_example (vw &all, example *ae)
 
float calculate_total_sum_features_squared (bool permutations, example &ec)
 
flat_exampleflatten_example (vw &all, example *ec)
 
flat_exampleflatten_sort_example (vw &all, example *ec)
 
void free_flatten_example (flat_example *fec)
 
int example_is_newline (example const &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 &all, v_array< example * > &examples)
 
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

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

Typedef Documentation

typedef std::vector<example*> multi_ex

Function Documentation

std::string a_s_pred_to_string ( const example ec)
void add_passthrough_feature_magic ( example ec,
uint64_t  magic,
uint64_t  i,
float  x 
)
inline
float calculate_total_sum_features_squared ( bool  permutations,
example ec 
)
std::string cb_label_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)
int example_is_newline ( example const &  ec)
inline
flat_example* flatten_example ( vw all,
example ec 
)
flat_example* flatten_sort_example ( vw all,
example ec 
)
void free_flatten_example ( flat_example fec)
std::string multiclass_pred_to_string ( const example ec)
std::string prob_dist_pred_to_string ( const example ec)
std::string scalar_pred_to_string ( const example ec)
std::string simple_label_to_string ( const example ec)
bool valid_ns ( char  c)
inline