Vowpal Wabbit
example_predict_builder.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "vw_slim_predict.h"
4 
5 namespace vw_slim
6 {
8 {
11  uint64_t _namespace_hash;
13 
14  void add_namespace(namespace_index feature_group);
15 
16  public:
17  example_predict_builder(example_predict* ex, char* namespace_name, uint32_t feature_index_num_bits = 18);
18  example_predict_builder(example_predict* ex, namespace_index namespace_idx, uint32_t feature_index_num_bits = 18);
19 
20  void push_feature_string(char* feature_idx, feature_value value);
21  void push_feature(feature_index feature_idx, feature_value value);
22 };
23 } // namespace vw_slim
void push_feature(feature_index feature_idx, feature_value value)
void add_namespace(namespace_index feature_group)
float feature_value
Definition: feature_group.h:20
example_predict_builder(example_predict *ex, char *namespace_name, uint32_t feature_index_num_bits=18)
unsigned char namespace_index
uint64_t feature_index
Definition: feature_group.h:21
void push_feature_string(char *feature_idx, feature_value value)