Vowpal Wabbit
|
the core definition of a set of features. More...
#include <feature_group.h>
Classes | |
class | features_value_index_audit_range |
defines a "range" usable by C++ 11 for loops More... | |
Public Types | |
typedef features_value_index_iterator | iterator |
typedef features_value_iterator | iterator_value |
typedef features_value_index_audit_iterator | iterator_all |
Public Member Functions | |
features () | |
size_t | size () const |
bool | nonempty () const |
void | free_space_names (size_t i) |
features_value_index_audit_range | values_indices_audit () |
iterator | begin () |
iterator | end () |
void | clear () |
void | truncate_to (const features_value_iterator &pos) |
void | truncate_to (size_t i) |
void | delete_v () |
void | push_back (feature_value v, feature_index i) |
bool | sort (uint64_t parse_mask) |
void | deep_copy_from (const features &src) |
Public Attributes | |
v_array< feature_value > | values |
v_array< feature_index > | indicies |
v_array< audit_strings_ptr > | space_names |
float | sum_feat_sq |
the core definition of a set of features.
Definition at line 241 of file feature_group.h.
Definition at line 249 of file feature_group.h.
Definition at line 251 of file feature_group.h.
Definition at line 250 of file feature_group.h.
|
inline |
Definition at line 269 of file feature_group.h.
|
inline |
Definition at line 292 of file feature_group.h.
References v_array< T >::begin().
Referenced by collision_cleanup(), MARGINAL::make_marginal(), and MARGINAL::update_marginal().
|
inline |
Definition at line 296 of file feature_group.h.
References v_array< T >::clear().
Referenced by Search::add_example_conditioning(), GraphTask::del_edge_features(), Search::del_features_in_top_namespace(), MARGINAL::make_marginal(), multiply(), MWT::predict_or_learn(), recall_tree_ns::remove_node_id_feature(), VW::autolink::reset_example(), memory_tree_ns::save_load_example(), Search::search_predict(), and CSOAA::unsubtract_example().
|
inline |
Definition at line 384 of file feature_group.h.
References copy_array(), copy_array_no_memcpy(), indicies, space_names, sum_feat_sq, and values.
Referenced by Search::action_repr::action_repr(), VW::copy_example_metadata(), learn(), parse_dictionary_argument(), and predict_or_learn().
|
inline |
Definition at line 329 of file feature_group.h.
References v_array< T >::delete_v().
Referenced by VW::dealloc_example(), VW::delete_dictionary_entry(), memory_tree_ns::diag_kronecker_prod_fs_test(), free_flatten_example(), Search::reset_search_structure(), interact::~interact(), and Search::search::~search().
|
inline |
Definition at line 294 of file feature_group.h.
References v_array< T >::end().
Referenced by MARGINAL::make_marginal(), and MARGINAL::update_marginal().
|
inline |
|
inline |
Definition at line 282 of file feature_group.h.
References v_array< T >::empty().
Referenced by INTERACTIONS::generate_interactions().
|
inline |
Definition at line 336 of file feature_group.h.
References v_array< T >::push_back().
Referenced by DepParserTask::add_all_features(), GraphTask::add_edge_features_single_fn(), LabelDict::add_example_namespace(), Search::add_new_feature(), recall_tree_ns::add_node_id_feature(), add_passthrough_feature_magic(), Namespace< audit >::AddFeature(), addgrams(), memory_tree_ns::diag_kronecker_prod_fs_test(), finish_setup(), MARGINAL::make_marginal(), TC_parser< audit >::maybeFeature(), multiply(), predict_or_learn(), MWT::predict_or_learn(), VW::autolink::prepare_example(), read_cached_features(), memory_tree_ns::save_load_example(), and vec_ffs_store().
|
inline |
Definition at line 280 of file feature_group.h.
References v_array< T >::size().
Referenced by Search::add_example_conditioning(), LabelDict::add_example_namespace(), LabelDict::add_example_namespace_from_memory(), ezexample::add_other_example_ns(), audit_regressor(), audit_regressor_lda(), contains_valid_namespaces(), GraphTask::del_edge_features(), LabelDict::del_example_namespace(), LabelDict::del_example_namespace_from_memory(), Search::del_features_in_top_namespace(), memory_tree_ns::diag_kronecker_prod_fs_test(), INTERACTIONS::eval_count_of_generated_ft(), DepParserTask::extract_features(), learn(), memory_tree_ns::linear_kernel(), linear_kernel(), MARGINAL::make_marginal(), TC_parser< audit >::maybeFeature(), multiply(), output_features(), CSOAA::predict_or_learn(), predict_or_learn(), memory_tree_ns::save_load_example(), save_load_flat_example(), sd_offset_update(), Search::search_predict(), CSOAA::subtract_example(), synthetic_decycle(), unique_features(), and CSOAA::unsubtract_example().
|
inline |
Definition at line 343 of file feature_group.h.
References v_array< T >::begin(), v_array< T >::delete_v(), v_array< T >::empty(), feature::feature(), v_array< T >::push_back(), and v_array< T >::size().
Referenced by feature_limit(), and flatten_sort_example().
|
inline |
Definition at line 304 of file feature_group.h.
References features_value_iterator::_begin, v_array< T >::begin(), and v_array< T >::end().
Referenced by LabelDict::del_example_namespace(), and unique_features().
|
inline |
Definition at line 317 of file feature_group.h.
References v_array< T >::begin(), and v_array< T >::end().
|
inline |
Definition at line 289 of file feature_group.h.
Referenced by INTERACTIONS::generate_interactions(), and unique_features().
v_array<feature_index> features::indicies |
Definition at line 244 of file feature_group.h.
Referenced by Search::add_example_conditioning(), LabelDict::add_example_namespace(), Search::add_new_feature(), ezexample::add_other_example_ns(), addgrams(), audit_regressor(), audit_regressor_lda(), features::features_value_index_audit_range::begin(), deep_copy_from(), memory_tree_ns::diag_kronecker_prod_fs_test(), features::features_value_index_audit_range::end(), finish_setup(), LabelDict::free_label_features(), INTERACTIONS::generate_interactions(), memory_tree_ns::linear_kernel(), linear_kernel(), TC_parser< audit >::maybeFeature(), multiply(), predict_or_learn(), CSOAA::predict_or_learn(), predict_or_learn_multi(), memory_tree_ns::save_load_example(), save_load_flat_example(), sd_offset_update(), Search::search_predict(), synthetic_decycle(), and unique_features().
v_array<audit_strings_ptr> features::space_names |
Definition at line 245 of file feature_group.h.
Referenced by LabelDict::add_example_namespace(), Search::add_new_feature(), Namespace< audit >::AddFeature(), addgrams(), audit_regressor(), audit_regressor_lda(), features::features_value_index_audit_range::begin(), deep_copy_from(), features::features_value_index_audit_range::end(), finish_setup(), LabelDict::free_label_features(), INTERACTIONS::generate_interactions(), MARGINAL::make_marginal(), TC_parser< audit >::maybeFeature(), predict_or_learn(), and unique_features().
float features::sum_feat_sq |
Definition at line 247 of file feature_group.h.
Referenced by Search::add_example_conditioning(), LabelDict::add_example_namespace(), ezexample::add_other_example_ns(), deep_copy_from(), GraphTask::del_edge_features(), LabelDict::del_example_namespace(), Search::del_features_in_top_namespace(), DepParserTask::extract_features(), TC_parser< audit >::maybeFeature(), predict_or_learn(), predict_or_learn_multi(), VW::autolink::prepare_example(), VW::autolink::reset_example(), CSOAA::subtract_example(), and CSOAA::unsubtract_example().
v_array<feature_value> features::values |
Definition at line 243 of file feature_group.h.
Referenced by Search::add_example_conditioning(), LabelDict::add_example_namespace(), Search::add_new_feature(), ezexample::add_other_example_ns(), audit_regressor(), features::features_value_index_audit_range::begin(), contains_valid_namespaces(), deep_copy_from(), memory_tree_ns::diag_kronecker_prod_fs_test(), features::features_value_index_audit_range::end(), INTERACTIONS::eval_count_of_generated_ft(), finish_setup(), LabelDict::free_label_features(), INTERACTIONS::generate_interactions(), learn(), memory_tree_ns::linear_kernel(), linear_kernel(), TC_parser< audit >::maybeFeature(), multiply(), output_features(), predict_or_learn(), CSOAA::predict_or_learn(), predict_or_learn_multi(), memory_tree_ns::save_load_example(), save_load_flat_example(), sd_offset_update(), and Search::search_predict().