Vowpal Wabbit
Classes | Namespaces | Typedefs | Functions | Variables
interactions_predict.h File Reference
#include <cstdint>
#include "constant.h"
#include "feature_group.h"
#include "example_predict.h"
#include "vw_exception.h"
#include "object_pool.h"
#include <utility>
#include <vector>
#include <string>
#include <stack>

Classes

struct  INTERACTIONS::extent_interaction_expansion_stack_item
 
struct  INTERACTIONS::generate_interactions_object_cache
 
struct  INTERACTIONS::feature_gen_data
 

Namespaces

 INTERACTIONS
 

Typedefs

using INTERACTIONS::features_range_t = std::pair< features::const_audit_iterator, features::const_audit_iterator >
 

Functions

template<class DataT , void(*)(DataT &, const float, float &) FuncT, class WeightsT >
void INTERACTIONS::call_FuncT (DataT &dat, WeightsT &weights, const float ft_value, const uint64_t ft_idx)
 
template<class DataT , void(*)(DataT &, const float, float) FuncT, class WeightsT >
void INTERACTIONS::call_FuncT (DataT &dat, const WeightsT &weights, const float ft_value, const uint64_t ft_idx)
 
bool INTERACTIONS::term_is_empty (namespace_index term, const std::array< features, NUM_NAMESPACES > &feature_groups)
 
bool INTERACTIONS::has_empty_interaction_quadratic (const std::array< features, NUM_NAMESPACES > &feature_groups, const std::vector< namespace_index > &namespace_indexes)
 
bool INTERACTIONS::has_empty_interaction_cubic (const std::array< features, NUM_NAMESPACES > &feature_groups, const std::vector< namespace_index > &namespace_indexes)
 
bool INTERACTIONS::has_empty_interaction (const std::array< features, NUM_NAMESPACES > &feature_groups, const std::vector< namespace_index > &namespace_indexes)
 
bool INTERACTIONS::has_empty_interaction (const std::array< features, NUM_NAMESPACES > &feature_groups, const std::vector< extent_term > &namespace_indexes)
 
float INTERACTIONS::INTERACTION_VALUE (float value1, float value2)
 
std::tuple< features_range_t, features_range_t > INTERACTIONS::generate_quadratic_char_combination (const std::array< features, NUM_NAMESPACES > &feature_groups, namespace_index ns_idx1, namespace_index ns_idx2)
 
template<typename DispatchCombinationFuncT >
void INTERACTIONS::generate_generic_extent_combination_iterative (const std::array< features, NUM_NAMESPACES > &feature_groups, const std::vector< extent_term > &terms, const DispatchCombinationFuncT &dispatch_combination_func, std::stack< extent_interaction_expansion_stack_item > &in_process_frames, VW::moved_object_pool< extent_interaction_expansion_stack_item > &frame_pool)
 
std::tuple< features_range_t, features_range_t, features_range_t > INTERACTIONS::generate_cubic_char_combination (const std::array< features, NUM_NAMESPACES > &feature_groups, namespace_index ns_idx1, namespace_index ns_idx2, namespace_index ns_idx3)
 
std::vector< features_range_t > INTERACTIONS::generate_generic_char_combination (const std::array< features, NUM_NAMESPACES > &feature_groups, const std::vector< namespace_index > &terms)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, bool audit, void(*)(DataT &, const audit_strings *) audit_func, class WeightsT >
void INTERACTIONS::inner_kernel (DataT &dat, features::const_audit_iterator &begin, features::const_audit_iterator &end, const uint64_t offset, WeightsT &weights, feature_value ft_value, feature_index halfhash)
 
template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t INTERACTIONS::process_quadratic_interaction (const std::tuple< features_range_t, features_range_t > &range, bool permutations, const KernelFuncT &kernel_func, const AuditFuncT &audit_func)
 
template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t INTERACTIONS::process_cubic_interaction (const std::tuple< features_range_t, features_range_t, features_range_t > &range, bool permutations, const KernelFuncT &kernel_func, const AuditFuncT &audit_func)
 
template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t INTERACTIONS::process_generic_interaction (const std::vector< features_range_t > &range, bool permutations, const KernelFuncT &kernel_func, const AuditFuncT &audit_func, std::vector< feature_gen_data > &state_data)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, bool audit, void(*)(DataT &, const audit_strings *) audit_func, class WeightsT >
void INTERACTIONS::generate_interactions (const std::vector< std::vector< namespace_index >> &interactions, const std::vector< std::vector< extent_term >> &extent_interactions, bool permutations, example_predict &ec, DataT &dat, WeightsT &weights, size_t &num_features, generate_interactions_object_cache &cache)
 

Variables

static const std::pair< std::string, std::string > EMPTY_AUDIT_STRINGS = std::make_pair("", "")
 

Variable Documentation

◆ EMPTY_AUDIT_STRINGS

const std::pair<std::string, std::string> EMPTY_AUDIT_STRINGS = std::make_pair("", "")
static