16 #ifndef _STREAMING_VWFEATURES__H__
17 #define _STREAMING_VWFEATURES__H__
63 bool is_labelled, int32_t size);
74 bool is_labelled, int32_t size);
285 float32_t* vec2, int32_t vec2_len,
bool abs_val =
false);
297 float32_t* vec2, int32_t vec2_len,
bool abs_val =
false);
331 virtual const char*
get_name()
const {
return "StreamingVwFeatures"; }
371 virtual void setup_example(
VwExample* ae);
394 #endif // _STREAMING_VWFEATURES__H__
uint32_t vw_size_t
vw_size_t typedef to work across platforms
virtual void set_env(CVwEnvironment *vw_env)
virtual void set_vector_and_label_reader()
virtual EFeatureClass get_feature_class() const
virtual void release_example()
virtual float32_t dot(CStreamingDotFeatures *df)
CVwEnvironment * env
Environment for VW.
Class CVwEnvironment is the environment used by VW.
virtual void add_to_dense_vec(float32_t alpha, VwExample *&ex, float32_t *vec2, int32_t vec2_len, bool abs_val=false)
VwExample * current_example
Example currently being processed.
virtual int32_t get_num_vectors() const
virtual VwExample * get_example()
virtual void start_parser()
virtual int32_t get_num_features()
virtual int32_t get_dim_feature_space() const
virtual EFeatureType get_feature_type() const
EFeatureClass
shogun feature class
virtual void reset_stream()
virtual float32_t dense_dot_truncated(const float32_t *vec2, VwExample *&ex, float32_t gravity)
float64_t current_label
The current example's label.
virtual const char * get_name() const
virtual CVwEnvironment * get_env()
virtual float64_t get_label()
virtual int32_t get_nnz_features_for_vector()
virtual void set_vector_reader()
virtual float32_t real_weight(float32_t w, float32_t gravity)
Streaming features that support dot products among other operations.
Class StreamingVwCacheFile to read vector-by-vector from VW cache files.
This class implements streaming features for use with VW.
virtual bool get_next_example()
EFeatureType
shogun feature type
Class StreamingVwFile to read vector-by-vector from Vowpal Wabbit data files. It reads the example an...
all of classes and functions are contained in the shogun namespace
int32_t current_length
Number of features in current example.
virtual void end_parser()
The class Features is the base class of all feature objects.
CFeatures * duplicate() const
template class SGSparseVector The assumtion is that the stored SGSparseVectorEntry* vector is orde...
virtual float32_t dense_dot(VwExample *&ex, const float32_t *vec2)
vw_size_t example_count
Number of examples processed at a point of time.
CInputParser< VwExample > parser
The parser object, which reads from input and returns parsed example objects.
virtual void expand_if_required(float32_t *&vec, int32_t &len)