10 #ifndef _SPARSEPOLYFEATURES__H__
11 #define _SPARSEPOLYFEATURES__H__
92 #ifndef DOXYGEN_SHOULD_SKIP_THIS
94 struct sparse_poly_feature_iterator
150 virtual const char*
get_name()
const {
return "SparsePolyFeatures"; }
198 int32_t m_normalization_values_len;
201 #endif // _SPARSEPOLYFEATURES__H__
virtual ~CSparsePolyFeatures()
virtual EFeatureClass get_feature_class() const
CSparseFeatures< float64_t > * m_feat
void free_feature_iterator(void *iterator)
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)
int32_t m_output_dimensions
virtual void * get_feature_iterator(int32_t vector_index)
Features that support dot products among other operations.
EFeatureClass
shogun feature class
virtual const char * get_name() const
virtual int32_t get_dim_feature_space() const
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
CFeatures * duplicate() const
virtual EFeatureType get_feature_type() const
EFeatureType
shogun feature type
float64_t * m_normalization_values
bool get_next_feature(int32_t &index, float64_t &value, void *iterator)
all of classes and functions are contained in the shogun namespace
virtual void add_to_dense_vec(float64_t alpha, int32_t vec_idx1, float64_t *vec2, int32_t vec2_len, bool abs_val=false)
The class Features is the base class of all feature objects.
int32_t m_input_dimensions
virtual int32_t get_num_vectors() const
implement DotFeatures for the polynomial kernel
void store_normalization_values()
virtual int32_t get_nnz_features_for_vector(int32_t num)