Vowpal Wabbit
|
#include <example_predict_builder.h>
Public Member Functions | |
example_predict_builder (example_predict *ex, char *namespace_name, uint32_t feature_index_num_bits=18) | |
example_predict_builder (example_predict *ex, namespace_index namespace_idx, uint32_t feature_index_num_bits=18) | |
void | push_feature_string (char *feature_idx, feature_value value) |
void | push_feature (feature_index feature_idx, feature_value value) |
Private Member Functions | |
void | add_namespace (namespace_index feature_group) |
Private Attributes | |
example_predict * | _ex |
namespace_index | _namespace_idx |
uint64_t | _namespace_hash |
uint64_t | _feature_index_bit_mask |
Definition at line 7 of file example_predict_builder.h.
vw_slim::example_predict_builder::example_predict_builder | ( | example_predict * | ex, |
char * | namespace_name, | ||
uint32_t | feature_index_num_bits = 18 |
||
) |
Definition at line 7 of file example_predict_builder.cc.
References _feature_index_bit_mask, _namespace_hash, add_namespace(), and hashstring().
vw_slim::example_predict_builder::example_predict_builder | ( | example_predict * | ex, |
namespace_index | namespace_idx, | ||
uint32_t | feature_index_num_bits = 18 |
||
) |
Definition at line 16 of file example_predict_builder.cc.
References _feature_index_bit_mask, and add_namespace().
|
private |
Definition at line 24 of file example_predict_builder.cc.
References _ex, _namespace_idx, example_predict::indices, and v_array< T >::unique_add_sorted().
Referenced by example_predict_builder().
void vw_slim::example_predict_builder::push_feature | ( | feature_index | feature_idx, |
feature_value | value | ||
) |
Definition at line 37 of file example_predict_builder.cc.
References _ex, _namespace_hash, _namespace_idx, and example_predict::feature_space.
Referenced by cb_data_epsilon_0_skype_jb_test_runner(), generate_cb_data_5(), run_predict_in_memory(), and TEST().
void vw_slim::example_predict_builder::push_feature_string | ( | char * | feature_idx, |
feature_value | value | ||
) |
Definition at line 30 of file example_predict_builder.cc.
References _ex, _feature_index_bit_mask, _namespace_hash, _namespace_idx, example_predict::feature_space, and hashstring().
Referenced by run_predict_in_memory(), and TEST().
|
private |
Definition at line 9 of file example_predict_builder.h.
Referenced by add_namespace(), push_feature(), and push_feature_string().
|
private |
Definition at line 12 of file example_predict_builder.h.
Referenced by example_predict_builder(), and push_feature_string().
|
private |
Definition at line 11 of file example_predict_builder.h.
Referenced by example_predict_builder(), push_feature(), and push_feature_string().
|
private |
Definition at line 10 of file example_predict_builder.h.
Referenced by add_namespace(), push_feature(), and push_feature_string().