10 #ifndef _STREAMING_SIMPLEFEATURES__H__
11 #define _STREAMING_SIMPLEFEATURES__H__
48 bool is_labelled, int32_t size);
252 inline virtual const char*
get_name()
const {
return "StreamingSimpleFeatures"; }
305 #endif // _STREAMING_SIMPLEFEATURES__H__
virtual float32_t dot(SGVector< T > vec)
virtual int32_t get_size()
int32_t get_num_features()
virtual void release_example()
float32_t combined_weight
feature weighting in combined dot features
virtual float64_t get_label()
virtual const char * get_name() const
CInputParser< T > parser
The parser object, which reads from input and returns parsed example objects.
float64_t current_label
The current example's label.
virtual CFeatures * duplicate() const
int32_t current_length
Number of features in current example.
EFeatureClass
shogun feature class
virtual void set_vector_reader()
A Streaming File access class.
virtual int32_t get_nnz_features_for_vector()
virtual int32_t get_num_vectors() const
virtual void start_parser()
virtual EFeatureType get_feature_type()
virtual void end_parser()
virtual void set_vector_and_label_reader()
Streaming features that support dot products among other operations.
EFeatureType
shogun feature type
virtual float32_t dense_dot(const float32_t *vec2, int32_t vec2_len)
SGVector< T > get_vector()
CStreamingSimpleFeatures()
The class Features is the base class of all feature objects.
~CStreamingSimpleFeatures()
virtual int32_t get_dim_feature_space() const
SGVector< T > current_sgvector
The current example's feature vector as an SGVector<T>
T * current_vector
The current example's feature vector as a T*.
virtual bool get_next_example()
virtual EFeatureClass get_feature_class()
virtual void add_to_dense_vec(float32_t alpha, float32_t *vec2, int32_t vec2_len, bool abs_val=false)
virtual void reset_stream()
This class implements streaming features with dense feature vectors.