11 #ifndef _STREAMING_HASHED_DENSEFEATURES__H__
12 #define _STREAMING_HASHED_DENSEFEATURES__H__
20 class CStreamingDotFeatures;
47 int32_t d = 512,
bool use_quadr =
false,
bool keep_lin_terms =
true);
65 bool use_quadr =
false,
bool keep_lin_terms =
true,
float64_t* lab = NULL);
93 int32_t vec2_len,
bool abs_val =
false);
109 virtual const char*
get_name()
const;
210 int32_t d,
bool use_quadr,
bool keep_lin_terms);
234 #endif // _STREAMING_HASHED_DENSEFEATURES__H__
virtual float64_t get_label()
virtual void set_vector_and_label_reader()
virtual float32_t dense_dot(const float32_t *vec2, int32_t vec2_len)
virtual const char * get_name() const
virtual bool get_next_example()
virtual int32_t get_dim_feature_space() const
virtual int32_t get_num_vectors() const
CInputParser< ST > parser
EFeatureClass
shogun feature class
A Streaming File access class.
template class SGSparseVector The assumtion is that the stored SGSparseVectorEntry<T>* vector is orde...
virtual float32_t dot(CStreamingDotFeatures *df)
This class acts as an alternative to the CStreamingDenseFeatures class and their difference is that t...
virtual void start_parser()
virtual EFeatureClass get_feature_class() const
virtual void release_example()
Streaming features that support dot products among other operations.
virtual void end_parser()
EFeatureType
shogun feature type
virtual ~CStreamingHashedDenseFeatures()
virtual int32_t get_num_features()
The class DenseFeatures implements dense feature matrices.
virtual CFeatures * duplicate() const
virtual void set_vector_reader()
virtual void add_to_dense_vec(float32_t alpha, float32_t *vec2, int32_t vec2_len, bool abs_val=false)
The class Features is the base class of all feature objects.
CStreamingHashedDenseFeatures()
SGSparseVector< ST > get_vector()
virtual EFeatureType get_feature_type() const
SGSparseVector< ST > current_vector