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_features (vw &all, example &ec)
 
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 DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT>
void foreach_feature (vw &all, example &ec, DataT &dat)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT>
void foreach_feature (vw &all, example &ec, DataT &dat, size_t &num_interacted_features)
 
template<class DataT , void(*)(DataT &, float, float &) FuncT>
void foreach_feature (vw &all, example &ec, DataT &dat)
 
template<class DataT , void(*)(DataT &, float, float &) FuncT>
void foreach_feature (vw &all, example &ec, DataT &dat, size_t &num_interacted_features)
 
float inline_predict (vw &all, example &ec)
 
float inline_predict (vw &all, example &ec, size_t &num_generated_features)
 
float trunc_weight (const float w, const float gravity)
 
template<class DataT , void(*)(DataT &, float feature_value, uint64_t feature_index) FuncT, class WeightsT >
void foreach_feature (WeightsT &, const features &fs, DataT &dat, uint64_t offset=0, float mult=1.)
 
template<class DataT , void(*)(DataT &, float, float) FuncT, class WeightsT >
void foreach_feature (const WeightsT &weights, const features &fs, DataT &dat, uint64_t offset=0, float mult=1.)
 
template<class DataT >
void dummy_func (DataT &, const audit_strings *)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, class WeightsT >
void generate_interactions (const std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, DataT &dat, WeightsT &weights, size_t &num_interacted_features)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, class WeightsT >
void foreach_feature (WeightsT &weights, bool ignore_some_linear, std::array< bool, NUM_NAMESPACES > &ignore_linear, const std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, DataT &dat, size_t &num_interacted_features)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, class WeightsT >
void foreach_feature (WeightsT &weights, bool ignore_some_linear, std::array< bool, NUM_NAMESPACES > &ignore_linear, const std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, DataT &dat)
 
void vec_add (float &p, float fx, float fw)
 
template<class WeightsT >
float inline_predict (WeightsT &weights, bool ignore_some_linear, std::array< bool, NUM_NAMESPACES > &ignore_linear, const std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, float initial=0.f)
 
template<class WeightsT >
float inline_predict (WeightsT &weights, bool ignore_some_linear, std::array< bool, NUM_NAMESPACES > &ignore_linear, const std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, size_t &num_interacted_features, float initial=0.f)
 

Function Documentation

template<class DataT >
void GD::dummy_func ( DataT &  ,
const audit_strings  
)
inline
float GD::finalize_prediction ( shared_data sd,
vw_logger logger,
float  ret 
)
template<class DataT , void(*)(DataT &, float feature_value, uint64_t feature_index) FuncT, class WeightsT >
void GD::foreach_feature ( WeightsT &  weights,
const features fs,
DataT &  dat,
uint64_t  offset = 0,
float  mult = 1. 
)
inline
template<class DataT , void(*)(DataT &, float, float) FuncT, class WeightsT >
void GD::foreach_feature ( const WeightsT &  weights,
const features fs,
DataT &  dat,
uint64_t  offset = 0,
float  mult = 1. 
)
inline
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, class WeightsT >
void GD::foreach_feature ( WeightsT &  weights,
bool  ignore_some_linear,
std::array< bool, NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
DataT &  dat,
size_t &  num_interacted_features 
)
inline
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT>
void GD::foreach_feature ( vw all,
example ec,
DataT &  dat 
)
inline
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT>
void GD::foreach_feature ( vw all,
example ec,
DataT &  dat,
size_t &  num_interacted_features 
)
inline
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, class WeightsT >
void GD::foreach_feature ( WeightsT &  weights,
bool  ignore_some_linear,
std::array< bool, NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
DataT &  dat 
)
inline
template<class DataT , void(*)(DataT &, float, float &) FuncT>
void GD::foreach_feature ( vw all,
example ec,
DataT &  dat 
)
inline
template<class DataT , void(*)(DataT &, float, float &) FuncT>
void GD::foreach_feature ( vw all,
example ec,
DataT &  dat,
size_t &  num_interacted_features 
)
inline
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, class WeightsT >
void GD::generate_interactions ( const std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
DataT &  dat,
WeightsT &  weights,
size_t &  num_interacted_features 
)
inline
template<class WeightsT >
float GD::inline_predict ( WeightsT &  weights,
bool  ignore_some_linear,
std::array< bool, NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
float  initial = 0.f 
)
inline
template<class WeightsT >
float GD::inline_predict ( WeightsT &  weights,
bool  ignore_some_linear,
std::array< bool, NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
size_t &  num_interacted_features,
float  initial = 0.f 
)
inline
float GD::inline_predict ( vw all,
example ec 
)
inline
float GD::inline_predict ( vw all,
example ec,
size_t &  num_generated_features 
)
inline
void GD::print_audit_features ( vw ,
example ec 
)
void GD::print_features ( vw all,
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::trunc_weight ( const float  w,
const float  gravity 
)
inline
void GD::vec_add ( float &  p,
float  fx,
float  fw 
)
inline
template<class T >
void GD::vec_add_multipredict ( multipredict_info< T > &  mp,
const float  fx,
uint64_t  fi 
)
inline