11 #ifndef _STREAMING_HASHED_DENSEFEATURES__H__
12 #define _STREAMING_HASHED_DENSEFEATURES__H__
22 class CStreamingDotFeatures;
49 int32_t d = 512,
bool use_quadr =
false,
bool keep_lin_terms =
true);
67 bool use_quadr =
false,
bool keep_lin_terms =
true,
float64_t* lab = NULL);
95 int32_t vec2_len,
bool abs_val =
false);
111 virtual const char*
get_name()
const;
212 int32_t d,
bool use_quadr,
bool keep_lin_terms);
236 #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)
The class DenseFeatures implements dense feature matrices.
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.
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()
virtual CFeatures * duplicate() const
all of classes and functions are contained in the shogun namespace
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