Vowpal Wabbit
Loading...
Searching...
No Matches
Functions
INTERACTIONS Namespace Reference

Functions

constexpr bool is_interaction_ns (const unsigned char ns)
 
bool contains_wildcard (const std::vector< VW::namespace_index > &interaction)
 
bool contains_wildcard (const std::vector< VW::extent_term > &interaction)
 
float eval_sum_ft_squared_of_generated_ft (bool permutations, const std::vector< std::vector< VW::namespace_index > > &interactions, const std::vector< std::vector< VW::extent_term > > &extent_interactions, const std::array< VW::features, VW::NUM_NAMESPACES > &feature_spaces)
 
template<typename T >
void sort_and_filter_duplicate_interactions (std::vector< std::vector< T > > &vec, bool filter_duplicates, size_t &removed_cnt, size_t &sorted_cnt)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, bool audit, void(*)(DataT &, const VW::audit_strings *) audit_func, 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_features, VW::details::generate_interactions_object_cache &cache)
 

Function Documentation

◆ contains_wildcard() [1/2]

bool INTERACTIONS::contains_wildcard ( const std::vector< VW::extent_term > &  interaction)
inline
Deprecated:
"Moved to VW namespace"

◆ contains_wildcard() [2/2]

bool INTERACTIONS::contains_wildcard ( const std::vector< VW::namespace_index > &  interaction)
inline
Deprecated:
"Moved to VW namespace"

◆ eval_sum_ft_squared_of_generated_ft()

float INTERACTIONS::eval_sum_ft_squared_of_generated_ft ( bool  permutations,
const std::vector< std::vector< VW::namespace_index > > &  interactions,
const std::vector< std::vector< VW::extent_term > > &  extent_interactions,
const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_spaces 
)
inline
Deprecated:
"Moved to VW namespace"

◆ generate_interactions()

template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, bool audit, void(*)(DataT &, const VW::audit_strings *) audit_func, class WeightsT >
void INTERACTIONS::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_features,
VW::details::generate_interactions_object_cache cache 
)
inline
Deprecated:
"Moved into VW namespace"

◆ is_interaction_ns()

constexpr bool INTERACTIONS::is_interaction_ns ( const unsigned char  ns)
inlineconstexpr
Deprecated:
"Moved to VW namespace"

◆ sort_and_filter_duplicate_interactions()

template<typename T >
void INTERACTIONS::sort_and_filter_duplicate_interactions ( std::vector< std::vector< T > > &  vec,
bool  filter_duplicates,
size_t &  removed_cnt,
size_t &  sorted_cnt 
)
Deprecated:
"Moved to VW namespace"