Vowpal Wabbit
Classes | Functions | Variables
INTERACTIONS Namespace Reference

Classes

struct  feature_gen_data
 

Functions

constexpr bool is_printable_namespace (const unsigned char ns)
 
std::vector< std::vector< namespace_index > > expand_interactions (const std::vector< std::vector< namespace_index >> &vec, const size_t required_length, const std::string &err_msg)
 
void sort_and_filter_duplicate_interactions (std::vector< std::vector< namespace_index >> &vec, bool filter_duplicates, size_t &removed_cnt, size_t &sorted_cnt)
 
void eval_count_of_generated_ft (vw &all, example &ec, size_t &new_features_cnt, float &new_features_value)
 
template<class R , class S , void(*)(R &, float, S) T, bool audit, void(*)(R &, const audit_strings *) audit_func>
void generate_interactions (vw &all, example_predict &ec, R &dat)
 
template<class R , class S , void(*)(R &, float, S) T>
void generate_interactions (vw &all, example_predict &ec, R &dat)
 
int64_t choose (int64_t n, int64_t k)
 
template<class R , void(*)(R &, const float, float &) T, class W >
void call_T (R &dat, W &weights, const float ft_value, const uint64_t ft_idx)
 
template<class R , void(*)(R &, const float, const float &) T, class W >
void call_T (R &dat, const W &weights, const float ft_value, const uint64_t ft_idx)
 
float INTERACTION_VALUE (float value1, float value2)
 
template<class R , class S , void(*)(R &, float, S) T, bool audit, void(*)(R &, const audit_strings *) audit_func, class W >
void inner_kernel (R &dat, features::iterator_all &begin, features::iterator_all &end, const uint64_t offset, W &weights, feature_value ft_value, feature_index halfhash)
 
template<class R , class S , void(*)(R &, float, S) T, bool audit, void(*)(R &, const audit_strings *) audit_func, class W >
void generate_interactions (std::vector< std::vector< namespace_index >> &interactions, bool permutations, example_predict &ec, R &dat, W &weights)
 

Variables

constexpr unsigned char printable_start = ' '
 
constexpr unsigned char printable_end = '~'
 
constexpr unsigned char printable_ns_size = printable_end - printable_start
 
constexpr uint64_t valid_ns_size
 
constexpr bool feature_self_interactions = true
 

Function Documentation

template<class R , void(*)(R &, const float, float &) T, class W >
void INTERACTIONS::call_T ( R &  dat,
W &  weights,
const float  ft_value,
const uint64_t  ft_idx 
)
inline
template<class R , void(*)(R &, const float, const float &) T, class W >
void INTERACTIONS::call_T ( R &  dat,
const W &  weights,
const float  ft_value,
const uint64_t  ft_idx 
)
inline
int64_t INTERACTIONS::choose ( int64_t  n,
int64_t  k 
)
inline
void INTERACTIONS::eval_count_of_generated_ft ( vw all,
example ec,
size_t &  new_features_cnt,
float &  new_features_value 
)
std::vector<std::vector<namespace_index> > INTERACTIONS::expand_interactions ( const std::vector< std::vector< namespace_index >> &  vec,
const size_t  required_length,
const std::string &  err_msg 
)
template<class R , class S , void(*)(R &, float, S) T, bool audit, void(*)(R &, const audit_strings *) audit_func>
void INTERACTIONS::generate_interactions ( vw all,
example_predict ec,
R &  dat 
)
inline
template<class R , class S , void(*)(R &, float, S) T>
void INTERACTIONS::generate_interactions ( vw all,
example_predict ec,
R &  dat 
)
inline
template<class R , class S , void(*)(R &, float, S) T, bool audit, void(*)(R &, const audit_strings *) audit_func, class W >
void INTERACTIONS::generate_interactions ( std::vector< std::vector< namespace_index >> &  interactions,
bool  permutations,
example_predict ec,
R &  dat,
W &  weights 
)
inline
template<class R , class S , void(*)(R &, float, S) T, bool audit, void(*)(R &, const audit_strings *) audit_func, class W >
void INTERACTIONS::inner_kernel ( R &  dat,
features::iterator_all begin,
features::iterator_all end,
const uint64_t  offset,
W &  weights,
feature_value  ft_value,
feature_index  halfhash 
)
inline
float INTERACTIONS::INTERACTION_VALUE ( float  value1,
float  value2 
)
inline
constexpr bool INTERACTIONS::is_printable_namespace ( const unsigned char  ns)
inline
void INTERACTIONS::sort_and_filter_duplicate_interactions ( std::vector< std::vector< namespace_index >> &  vec,
bool  filter_duplicates,
size_t &  removed_cnt,
size_t &  sorted_cnt 
)

Variable Documentation

constexpr bool INTERACTIONS::feature_self_interactions = true
constexpr unsigned char INTERACTIONS::printable_end = '~'
constexpr unsigned char INTERACTIONS::printable_ns_size = printable_end - printable_start
constexpr unsigned char INTERACTIONS::printable_start = ' '
constexpr uint64_t INTERACTIONS::valid_ns_size
Initial value:
=
constexpr unsigned char printable_end
Definition: interactions.h:21
constexpr unsigned char printable_start
Definition: interactions.h:20