11 #ifndef _STREAMING_HASHED_SPARSEFEATURES__H__
12 #define _STREAMING_HASHED_SPARSEFEATURES__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);
223 CInputParser<SGSparseVectorEntry<ST> >
parser;
236 #endif // _STREAMING_HASHED_SPARSEFEATURES__H__
virtual void add_to_dense_vec(float32_t alpha, float32_t *vec2, int32_t vec2_len, bool abs_val=false)
virtual void set_vector_reader()
virtual float32_t dense_dot(const float32_t *vec2, int32_t vec2_len)
Template class SparseFeatures implements sparse matrices.
virtual float64_t get_label()
virtual int32_t get_dim_feature_space() const
This class acts as an alternative to the CStreamingSparseFeatures class and their difference is that ...
virtual bool get_next_example()
virtual EFeatureClass get_feature_class() const
virtual CFeatures * duplicate() const
virtual ~CStreamingHashedSparseFeatures()
EFeatureClass
shogun feature class
CStreamingHashedSparseFeatures()
A Streaming File access class.
virtual float32_t dot(CStreamingDotFeatures *df)
CInputParser< SGSparseVectorEntry< ST > > parser
SGSparseVector< ST > current_vector
virtual int32_t get_num_features()
Streaming features that support dot products among other operations.
EFeatureType
shogun feature type
virtual void start_parser()
virtual int32_t get_num_vectors() const
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual void release_example()
virtual const char * get_name() const
virtual EFeatureType get_feature_type() const
virtual void end_parser()
virtual void set_vector_and_label_reader()
SGSparseVector< ST > get_vector()