11 #ifndef _STREAMINGDENSEFEATURES__H__ 12 #define _STREAMINGDENSEFEATURES__H__ 14 #include <shogun/lib/config.h> 206 int32_t vec2_len,
bool abs_val=
false);
218 int32_t vec2_len,
bool abs_val=
false);
254 return "StreamingDenseFeatures";
304 #endif // _STREAMINGDENSEFEATURES__H__
virtual CFeatures * get_streamed_features(index_t num_elements)
This class implements streaming features with dense feature vectors.
SGVector< T > get_vector()
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<T>
virtual bool get_next_example()
virtual void reset_stream()
virtual float32_t dense_dot(const float32_t *vec2, int32_t vec2_len)
virtual int32_t get_num_vectors() 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()
virtual EFeatureClass get_feature_class() const
float32_t combined_weight
feature weighting in combined dot features
virtual float32_t dot(SGVector< T > vec)
virtual EFeatureType get_feature_type() const
virtual void release_example()
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()
virtual int32_t get_dim_feature_space() const
virtual const char * get_name() const
The class Features is the base class of all feature objects.
int32_t get_num_features()
CStreamingDenseFeatures()
virtual void start_parser()
virtual int32_t get_nnz_features_for_vector()
virtual float64_t get_label()