Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
VW::interactions_generator Class Reference

#include <interactions.h>

Public Member Functions

template<generate_func_t< VW::namespace_index > generate_func, bool leave_duplicate_interactions>
void update_interactions_if_new_namespace_seen (const std::vector< std::vector< VW::namespace_index > > &interactions, const VW::v_array< VW::namespace_index > &new_example_indices)
 
template<generate_func_t< VW::extent_term > generate_func, bool leave_duplicate_interactions>
void update_extent_interactions_if_new_namespace_seen (const std::vector< std::vector< VW::extent_term > > &interactions, const VW::v_array< VW::namespace_index > &indices, const std::array< VW::features, VW::NUM_NAMESPACES > &feature_space)
 

Public Attributes

std::vector< std::vector< VW::namespace_index > > generated_interactions
 
std::vector< std::vector< VW::extent_term > > generated_extent_interactions
 
bool store_in_reduction_features = false
 

Member Function Documentation

◆ update_extent_interactions_if_new_namespace_seen()

template<generate_func_t< VW::extent_term > generate_func, bool leave_duplicate_interactions>
void VW::interactions_generator::update_extent_interactions_if_new_namespace_seen ( const std::vector< std::vector< VW::extent_term > > &  interactions,
const VW::v_array< VW::namespace_index > &  indices,
const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_space 
)
inline

◆ update_interactions_if_new_namespace_seen()

template<generate_func_t< VW::namespace_index > generate_func, bool leave_duplicate_interactions>
void VW::interactions_generator::update_interactions_if_new_namespace_seen ( const std::vector< std::vector< VW::namespace_index > > &  interactions,
const VW::v_array< VW::namespace_index > &  new_example_indices 
)
inline

Member Data Documentation

◆ generated_extent_interactions

std::vector<std::vector<VW::extent_term> > VW::interactions_generator::generated_extent_interactions

◆ generated_interactions

std::vector<std::vector<VW::namespace_index> > VW::interactions_generator::generated_interactions

◆ store_in_reduction_features

bool VW::interactions_generator::store_in_reduction_features = false

The documentation for this class was generated from the following file: