Vowpal Wabbit
Public Member Functions | List of all members
ezexample Class Reference

#include <ezexample.h>

Public Member Functions

 ezexample (vw *this_vw, bool multiline=false, vw *this_vw_parser=nullptr)
 
 ezexample (vw *this_vw, example *this_ec, bool multiline=false, vw *this_vw_parser=nullptr)
 
 ~ezexample ()
 
bool ensure_ns_exists (char c)
 
void addns (char c)
 
void remns ()
 
fid addf (char to_ns, fid fint, float v)
 
fid addf (fid fint, float v)
 
void add_other_example_ns (example &other, char other_ns, char to_ns)
 
void add_other_example_ns (example &other, char ns)
 
void add_other_example_ns (ezexample &other, char other_ns, char to_ns)
 
void add_other_example_ns (ezexample &other, char ns)
 
ezexampleset_label (std::string label)
 
void mini_setup_example ()
 
size_t get_num_features ()
 
exampleget ()
 
float predict ()
 
float predict_partial ()
 
void train ()
 
void clear_features ()
 
void finish ()
 
fid hash (std::string fstr)
 
fid hash (char *fstr)
 
fid hash (char c, std::string fstr)
 
fid hash (char c, char *fstr)
 
fid addf (fid fint)
 
fid addf (std::string fstr, float val)
 
fid addf (std::string fstr)
 
fid addf (char ns, fid fint)
 
fid addf (char ns, std::string fstr, float val)
 
fid addf (char ns, std::string fstr)
 
ezexampleoperator() (const vw_namespace &n)
 
ezexampleoperator() (fid fint)
 
ezexampleoperator() (std::string fstr)
 
ezexampleoperator() (const char *fstr)
 
ezexampleoperator() (fid fint, float val)
 
ezexampleoperator() (std::string fstr, float val)
 
ezexampleoperator() (const char *fstr, float val)
 
ezexampleoperator() (char ns, fid fint)
 
ezexampleoperator() (char ns, std::string fstr)
 
ezexampleoperator() (char ns, const char *fstr)
 
ezexampleoperator() (char ns, fid fint, float val)
 
ezexampleoperator() (char ns, std::string fstr, float val)
 
ezexampleoperator() (char ns, const char *fstr, float val)
 
ezexampleoperator() (example &other, char other_ns, char to_ns)
 
ezexampleoperator() (example &other, char ns)
 
ezexampleoperator() (ezexample &other, char other_ns, char to_ns)
 
ezexampleoperator() (ezexample &other, char ns)
 
ezexampleoperator-- ()
 
float operator() ()
 

Constructor & Destructor Documentation

ezexample::ezexample ( vw this_vw,
bool  multiline = false,
vw this_vw_parser = nullptr 
)
inline
ezexample::ezexample ( vw this_vw,
example this_ec,
bool  multiline = false,
vw this_vw_parser = nullptr 
)
inline
ezexample::~ezexample ( )
inline

Member Function Documentation

void ezexample::add_other_example_ns ( example other,
char  other_ns,
char  to_ns 
)
inline
void ezexample::add_other_example_ns ( example other,
char  ns 
)
inline
void ezexample::add_other_example_ns ( ezexample other,
char  other_ns,
char  to_ns 
)
inline
void ezexample::add_other_example_ns ( ezexample other,
char  ns 
)
inline
fid ezexample::addf ( char  to_ns,
fid  fint,
float  v 
)
inline
fid ezexample::addf ( fid  fint,
float  v 
)
inline
fid ezexample::addf ( fid  fint)
inline
fid ezexample::addf ( std::string  fstr,
float  val 
)
inline
fid ezexample::addf ( std::string  fstr)
inline
fid ezexample::addf ( char  ns,
fid  fint 
)
inline
fid ezexample::addf ( char  ns,
std::string  fstr,
float  val 
)
inline
fid ezexample::addf ( char  ns,
std::string  fstr 
)
inline
void ezexample::addns ( char  c)
inline
void ezexample::clear_features ( )
inline
bool ezexample::ensure_ns_exists ( char  c)
inline
void ezexample::finish ( )
inline
example* ezexample::get ( )
inline
size_t ezexample::get_num_features ( )
inline
fid ezexample::hash ( std::string  fstr)
inline
fid ezexample::hash ( char *  fstr)
inline
fid ezexample::hash ( char  c,
std::string  fstr 
)
inline
fid ezexample::hash ( char  c,
char *  fstr 
)
inline
void ezexample::mini_setup_example ( )
inline
ezexample& ezexample::operator() ( const vw_namespace n)
inline
ezexample& ezexample::operator() ( fid  fint)
inline
ezexample& ezexample::operator() ( std::string  fstr)
inline
ezexample& ezexample::operator() ( const char *  fstr)
inline
ezexample& ezexample::operator() ( fid  fint,
float  val 
)
inline
ezexample& ezexample::operator() ( std::string  fstr,
float  val 
)
inline
ezexample& ezexample::operator() ( const char *  fstr,
float  val 
)
inline
ezexample& ezexample::operator() ( char  ns,
fid  fint 
)
inline
ezexample& ezexample::operator() ( char  ns,
std::string  fstr 
)
inline
ezexample& ezexample::operator() ( char  ns,
const char *  fstr 
)
inline
ezexample& ezexample::operator() ( char  ns,
fid  fint,
float  val 
)
inline
ezexample& ezexample::operator() ( char  ns,
std::string  fstr,
float  val 
)
inline
ezexample& ezexample::operator() ( char  ns,
const char *  fstr,
float  val 
)
inline
ezexample& ezexample::operator() ( example other,
char  other_ns,
char  to_ns 
)
inline
ezexample& ezexample::operator() ( example other,
char  ns 
)
inline
ezexample& ezexample::operator() ( ezexample other,
char  other_ns,
char  to_ns 
)
inline
ezexample& ezexample::operator() ( ezexample other,
char  ns 
)
inline
float ezexample::operator() ( )
inline
ezexample& ezexample::operator-- ( )
inline
float ezexample::predict ( )
inline
float ezexample::predict_partial ( )
inline
void ezexample::remns ( )
inline
ezexample& ezexample::set_label ( std::string  label)
inline
void ezexample::train ( )
inline

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