Vowpal Wabbit
Loading...
Searching...
No Matches
Typedefs | Functions
GD Namespace Reference

Typedefs

using gd = VW::reductions::gd
 

Functions

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

Typedef Documentation

◆ gd

using GD::gd = typedef VW::reductions::gd

Function Documentation

◆ foreach_feature() [1/8]

template<class DataT , void(*)(DataT &, float, float) FuncT, class WeightsT >
void GD::foreach_feature ( const WeightsT &  weights,
const VW::features fs,
DataT &  dat,
uint64_t  offset = 0,
float  mult = 1. 
)
inline
Deprecated:
"Moved to VW namespace"

◆ foreach_feature() [2/8]

template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT>
void GD::foreach_feature ( VW::workspace all,
VW::example ec,
DataT &  dat 
)
inline
Deprecated:
"Moved to VW namespace"

◆ foreach_feature() [3/8]

template<class DataT , void(*)(DataT &, float, float &) FuncT>
void GD::foreach_feature ( VW::workspace all,
VW::example ec,
DataT &  dat 
)
inline
Deprecated:
"Moved to VW namespace"
Deprecated:
"Moved to VW namespace"

◆ foreach_feature() [4/8]

template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT>
void GD::foreach_feature ( VW::workspace all,
VW::example ec,
DataT &  dat,
size_t &  num_interacted_features 
)
inline
Deprecated:
"Moved to VW namespace"

◆ foreach_feature() [5/8]

template<class DataT , void(*)(DataT &, float, float &) FuncT>
void GD::foreach_feature ( VW::workspace all,
VW::example ec,
DataT &  dat,
size_t &  num_interacted_features 
)
inline
Deprecated:
"Moved to VW namespace"
Deprecated:
"Moved to VW namespace"

◆ foreach_feature() [6/8]

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, VW::NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< VW::namespace_index > > &  interactions,
const std::vector< std::vector< VW::extent_term > > &  extent_interactions,
bool  permutations,
VW::example_predict ec,
DataT &  dat,
size_t &  num_interacted_features,
VW::details::generate_interactions_object_cache cache 
)
inline
Deprecated:
"Moved to VW namespace"

◆ foreach_feature() [7/8]

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, VW::NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< VW::namespace_index > > &  interactions,
const std::vector< std::vector< VW::extent_term > > &  extent_interactions,
bool  permutations,
VW::example_predict ec,
DataT &  dat,
VW::details::generate_interactions_object_cache cache 
)
inline
Deprecated:
"Moved to VW namespace"

◆ foreach_feature() [8/8]

template<class DataT , void(*)(DataT &, float feature_value, uint64_t feature_index) FuncT, class WeightsT >
void GD::foreach_feature ( WeightsT &  weights,
const VW::features fs,
DataT &  dat,
uint64_t  offset = 0,
float  mult = 1. 
)
inline
Deprecated:
"Moved to VW namespace"
Deprecated:
"Moved to VW namespace"

◆ generate_interactions()

template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, class WeightsT >
void GD::generate_interactions ( const std::vector< std::vector< VW::namespace_index > > &  interactions,
const std::vector< std::vector< VW::extent_term > > &  extent_interactions,
bool  permutations,
VW::example_predict ec,
DataT &  dat,
WeightsT &  weights,
size_t &  num_interacted_features,
VW::details::generate_interactions_object_cache cache 
)
inline
Deprecated:
"Moved to VW namespace"

◆ inline_predict() [1/4]

float GD::inline_predict ( VW::workspace all,
VW::example ec 
)
inline
Deprecated:
"Moved to VW namespace"

◆ inline_predict() [2/4]

float GD::inline_predict ( VW::workspace all,
VW::example ec,
size_t &  num_generated_features 
)
inline
Deprecated:
"Moved to VW namespace"

◆ inline_predict() [3/4]

template<class WeightsT >
float GD::inline_predict ( WeightsT &  weights,
bool  ignore_some_linear,
std::array< bool, VW::NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< VW::namespace_index > > &  interactions,
const std::vector< std::vector< VW::extent_term > > &  extent_interactions,
bool  permutations,
VW::example_predict ec,
size_t &  num_interacted_features,
VW::details::generate_interactions_object_cache cache,
float  initial = 0.f 
)
inline
Deprecated:
"Moved to VW namespace"

◆ inline_predict() [4/4]

template<class WeightsT >
float GD::inline_predict ( WeightsT &  weights,
bool  ignore_some_linear,
std::array< bool, VW::NUM_NAMESPACES > &  ignore_linear,
const std::vector< std::vector< VW::namespace_index > > &  interactions,
const std::vector< std::vector< VW::extent_term > > &  extent_interactions,
bool  permutations,
VW::example_predict ec,
VW::details::generate_interactions_object_cache cache,
float  initial = 0.f 
)
inline
Deprecated:
"Moved to VW namespace"

◆ trunc_weight()

float GD::trunc_weight ( const float  w,
const float  gravity 
)
inline
Deprecated:
"Moved to VW namespace"