11 #ifndef _STREAMINGDENSEFEATURES__H__
12 #define _STREAMINGDENSEFEATURES__H__
206 int32_t vec2_len,
bool abs_val=
false);
218 int32_t vec2_len,
bool abs_val=
false);
261 return "StreamingDenseFeatures";
311 #endif // _STREAMINGDENSEFEATURES__H__
virtual int32_t get_dim_feature_space() const
virtual CFeatures * get_streamed_features(index_t num_elements)
This class implements streaming features with dense feature vectors.
SGVector< T > get_vector()
virtual CFeatures * duplicate() const
virtual void add_to_dense_vec(float32_t alpha, float32_t *vec2, int32_t vec2_len, bool abs_val=false)
SGVector< T > current_vector
The current example's feature vector as an SGVector
virtual bool get_next_example()
virtual void reset_stream()
virtual float32_t dense_dot(const float32_t *vec2, int32_t vec2_len)
virtual EFeatureClass get_feature_class() const
EFeatureClass
shogun feature class
A Streaming File access class.
virtual void set_vector_and_label_reader()
CInputParser< T > parser
The parser object, which reads from input and returns parsed example objects.
virtual void set_vector_reader()
float32_t combined_weight
feature weighting in combined dot features
virtual float32_t dot(SGVector< T > vec)
virtual void release_example()
virtual const char * get_name() const
Streaming features that support dot products among other operations.
float64_t current_label
The current example's label.
EFeatureType
shogun feature type
virtual void end_parser()
all of classes and functions are contained in the shogun namespace
~CStreamingDenseFeatures()
The class Features is the base class of all feature objects.
int32_t get_num_features()
CStreamingDenseFeatures()
virtual int32_t get_num_vectors() const
virtual void start_parser()
virtual int32_t get_nnz_features_for_vector()
virtual float64_t get_label()
virtual EFeatureType get_feature_type() const