11 #ifndef _STREAMING_HASHED_SPARSEFEATURES__H__ 12 #define _STREAMING_HASHED_SPARSEFEATURES__H__ 14 #include <shogun/lib/config.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;
205 int32_t d,
bool use_quadr,
bool keep_lin_terms);
229 #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)
virtual const char * get_name() const
Template class SparseFeatures implements sparse matrices.
virtual float64_t get_label()
This class acts as an alternative to the CStreamingSparseFeatures class and their difference is that ...
virtual bool get_next_example()
virtual ~CStreamingHashedSparseFeatures()
EFeatureClass
shogun feature class
CStreamingHashedSparseFeatures()
A Streaming File access class.
virtual float32_t dot(CStreamingDotFeatures *df)
virtual EFeatureType get_feature_type() const
CInputParser< SGSparseVectorEntry< ST > > parser
SGSparseVector< ST > current_vector
virtual int32_t get_num_features()
Streaming features that support dot products among other operations.
virtual int32_t get_dim_feature_space() const
EFeatureType
shogun feature type
virtual void start_parser()
virtual EFeatureClass get_feature_class() const
all of classes and functions are contained in the shogun namespace
virtual int32_t get_num_vectors() const
virtual void release_example()
virtual void end_parser()
virtual void set_vector_and_label_reader()
SGSparseVector< ST > get_vector()