Vowpal Wabbit
Classes | Functions
GD Namespace Reference

Classes

struct  multipredict_info
 

Functions

VW::LEARNER::base_learnersetup (VW::config::options_i &options, vw &all)
 
float finalize_prediction (shared_data *sd, vw_logger &logger, float ret)
 
void print_audit_features (vw &, example &ec)
 
void save_load_regressor (vw &all, io_buf &model_file, bool read, bool text)
 
void save_load_online_state (vw &all, io_buf &model_file, bool read, bool text, double &total_weight, GD::gd *g=nullptr, uint32_t ftrl_size=0)
 
template<class T >
void vec_add_multipredict (multipredict_info< T > &mp, const float fx, uint64_t fi)
 
template<class R , typename T >
void foreach_feature (vw &all, features &fs, R &dat, uint64_t offset=0, float mult=1.)
 
template<class R , class S , void(*)(R &, float, S) T>
void foreach_feature (vw &all, example &ec, R &dat)
 
template<class R , void(*)(R &, float, float &) T>
void foreach_feature (vw &all, example &ec, R &dat)
 
float inline_predict (vw &all, example &ec)
 
float sign (float w)
 
float trunc_weight (const float w, const float gravity)
 
template<class R , void(*)(R &, float, uint64_t) T, class W >
void foreach_feature (W &, features &fs, R &dat, uint64_t offset=0, float mult=1.)
 
template<class R , void(*)(R &, const float, const float &) T, class W >
void foreach_feature (const W &weights, features &fs, R &dat, uint64_t offset=0, float mult=1.)
 
template<class R >
void dummy_func (R &, const audit_strings *)
 
template<class R , class S , void(*)(R &, float, S) T, class W >
void generate_interactions (std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, R &dat, W &weights)
 
template<class R , class S , void(*)(R &, float, S) T, class W >
void foreach_feature (W &weights, bool ignore_some_linear, std::array< bool, NUM_NAMESPACES > &ignore_linear, std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, R &dat)
 
void vec_add (float &p, const float fx, const float &fw)
 
template<class W >
float inline_predict (W &weights, bool ignore_some_linear, std::array< bool, NUM_NAMESPACES > &ignore_linear, std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, float initial=0.f)
 

Function Documentation

template<class R >
void GD::dummy_func ( R &  ,
const audit_strings  
)
inline
float GD::finalize_prediction ( shared_data sd,
vw_logger logger,
float  ret 
)
template<class R , void(*)(R &, float, uint64_t) T, class W >
void GD::foreach_feature ( W &  weights,
features fs,
R &  dat,
uint64_t  offset = 0,
float  mult = 1. 
)
inline
template<class R , void(*)(R &, const float, const float &) T, class W >
void GD::foreach_feature ( const W &  weights,
features fs,
R &  dat,
uint64_t  offset = 0,
float  mult = 1. 
)
inline
template<class R , class S , void(*)(R &, float, S) T, class W >
void GD::foreach_feature ( W &  weights,
bool  ignore_some_linear,
std::array< bool, NUM_NAMESPACES > &  ignore_linear,
std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
R &  dat 
)
inline
template<class R , typename T >
void GD::foreach_feature ( vw all,
features fs,
R &  dat,
uint64_t  offset = 0,
float  mult = 1. 
)
inline
template<class R , class S , void(*)(R &, float, S) T>
void GD::foreach_feature ( vw all,
example ec,
R &  dat 
)
inline
template<class R , void(*)(R &, float, float &) T>
void GD::foreach_feature ( vw all,
example ec,
R &  dat 
)
inline
template<class R , class S , void(*)(R &, float, S) T, class W >
void GD::generate_interactions ( std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
R &  dat,
W &  weights 
)
inline
template<class W >
float GD::inline_predict ( W &  weights,
bool  ignore_some_linear,
std::array< bool, NUM_NAMESPACES > &  ignore_linear,
std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
float  initial = 0.f 
)
inline
float GD::inline_predict ( vw all,
example ec 
)
inline
void GD::print_audit_features ( vw ,
example ec 
)
void GD::save_load_online_state ( vw all,
io_buf model_file,
bool  read,
bool  text,
double &  total_weight,
GD::gd *  g = nullptr,
uint32_t  ftrl_size = 0 
)
void GD::save_load_regressor ( vw all,
io_buf model_file,
bool  read,
bool  text 
)
VW::LEARNER::base_learner* GD::setup ( VW::config::options_i options,
vw all 
)
float GD::sign ( float  w)
inline
float GD::trunc_weight ( const float  w,
const float  gravity 
)
inline
void GD::vec_add ( float &  p,
const float  fx,
const float &  fw 
)
inline
template<class T >
void GD::vec_add_multipredict ( multipredict_info< T > &  mp,
const float  fx,
uint64_t  fi 
)
inline