Vowpal Wabbit
Classes | Namespaces | Macros | Typedefs | Functions | Variables
interactions.h File Reference
#include "example_predict.h"
#include "reductions_fwd.h"
#include "constant.h"
#include <cstddef>
#include <vector>
#include <set>
#include <algorithm>

Classes

struct  INTERACTIONS::interactions_generator
 

Namespaces

 INTERACTIONS
 

Macros

#define PROCESS_SELF_INTERACTIONS(ft_value)   feature_self_interactions
 

Typedefs

using INTERACTIONS::generate_func_t = std::vector< std::vector< namespace_index >>(const std::set< namespace_index > &namespaces, size_t num_to_pick)
 

Functions

VW::LEARNER::base_learnerINTERACTIONS::generate_interactions_setup (VW::config::options_i &options, vw &all)
 
constexpr bool INTERACTIONS::is_printable_namespace (const unsigned char ns)
 
bool INTERACTIONS::contains_wildcard (const std::vector< namespace_index > &interaction)
 
void INTERACTIONS::eval_count_of_generated_ft (bool permutations, const std::vector< std::vector< namespace_index >> &interactions, const std::array< features, NUM_NAMESPACES > &feature_spaces, size_t &new_features_cnt, float &new_features_value)
 
std::vector< std::vector< namespace_index > > INTERACTIONS::generate_namespace_combinations_with_repetition (const std::set< namespace_index > &namespaces, size_t num_to_pick)
 
std::vector< std::vector< namespace_index > > INTERACTIONS::generate_namespace_permutations_with_repetition (const std::set< namespace_index > &namespaces, size_t num_to_pick)
 
std::vector< std::vector< namespace_index > > INTERACTIONS::expand_quadratics_wildcard_interactions (bool leave_duplicate_interactions, const std::set< namespace_index > &new_example_indices)
 
bool INTERACTIONS::sort_interactions_comparator (const std::vector< namespace_index > &a, const std::vector< namespace_index > &b)
 
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)
 
template<generate_func_t generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< namespace_index > > INTERACTIONS::compile_interaction (const std::vector< namespace_index > &interaction, const std::set< namespace_index > &indices)
 
template<generate_func_t generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< namespace_index > > INTERACTIONS::compile_interactions (const std::vector< std::vector< namespace_index >> &interactions, const std::set< namespace_index > &indices)
 

Variables

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

Macro Definition Documentation

#define PROCESS_SELF_INTERACTIONS (   ft_value)    feature_self_interactions