Vowpal Wabbit
|
the core definition of a set of features. More...
#include <feature_group.h>
Public Types | |
using | iterator = details::features_iterator< feature_value, feature_index > |
using | const_iterator = details::features_iterator< const feature_value, const feature_index > |
using | audit_iterator = details::audit_features_iterator< feature_value, feature_index, VW::audit_strings > |
using | const_audit_iterator = details::audit_features_iterator< const feature_value, const feature_index, const VW::audit_strings > |
using | extent_iterator = details::ns_extent_iterator< features, audit_iterator, std::vector< VW::namespace_extent >::iterator > |
using | const_extent_iterator = details::ns_extent_iterator< const features, const_audit_iterator, std::vector< VW::namespace_extent >::const_iterator > |
Public Attributes | |
VW::v_array< feature_value > | values |
VW::v_array< feature_index > | indices |
std::vector< VW::audit_strings > | space_names |
std::vector< VW::namespace_extent > | namespace_extents |
float | sum_feat_sq = 0.f |
the core definition of a set of features.
using VW::features::audit_iterator = details::audit_features_iterator<feature_value, feature_index, VW::audit_strings> |
using VW::features::const_audit_iterator = details::audit_features_iterator<const feature_value, const feature_index, const VW::audit_strings> |
using VW::features::const_extent_iterator = details::ns_extent_iterator<const features, const_audit_iterator, std::vector<VW::namespace_extent>::const_iterator> |
using VW::features::const_iterator = details::features_iterator<const feature_value, const feature_index> |
using VW::features::extent_iterator = details::ns_extent_iterator<features, audit_iterator, std::vector<VW::namespace_extent>::iterator> |
|
default |
|
default |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void VW::features::clear | ( | ) |
void VW::features::concat | ( | const features & | other | ) |
|
inline |
|
inline |
|
inline |
void VW::features::end_ns_extent | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void VW::features::push_back | ( | feature_value | v, |
feature_index | i | ||
) |
void VW::features::push_back | ( | feature_value | v, |
feature_index | i, | ||
uint64_t | ns_hash | ||
) |
|
inline |
bool VW::features::sort | ( | uint64_t | parse_mask | ) |
void VW::features::start_ns_extent | ( | uint64_t | hash | ) |
void VW::features::truncate_to | ( | const audit_iterator & | pos | ) |
void VW::features::truncate_to | ( | const audit_iterator & | pos, |
float | sum_feat_sq_of_removed_section | ||
) |
void VW::features::truncate_to | ( | const iterator & | pos | ) |
void VW::features::truncate_to | ( | const iterator & | pos, |
float | sum_feat_sq_of_removed_section | ||
) |
void VW::features::truncate_to | ( | size_t | i | ) |
void VW::features::truncate_to | ( | size_t | i, |
float | sum_feat_sq_of_removed_section | ||
) |
|
inline |
VW::v_array<feature_index> VW::features::indices |
std::vector<VW::namespace_extent> VW::features::namespace_extents |
std::vector<VW::audit_strings> VW::features::space_names |
float VW::features::sum_feat_sq = 0.f |
VW::v_array<feature_value> VW::features::values |