11 #ifndef _CSPARSEPREPROC__H__ 12 #define _CSPARSEPREPROC__H__ 14 #include <shogun/lib/config.h> 24 template <
class ST>
class SGSparseVector;
25 template <
class ST>
class CSparseFeatures;
35 template <
class ST>
class CSparsePreprocessor :
public CPreprocessor
50 SG_ERROR(
"Is not yet implemented!\n");
67 virtual const char*
get_name()
const {
return "UNKNOWN"; }
virtual EFeatureClass get_feature_class()
return that we are simple minded features (just fixed size matrices)
Template class SparseFeatures implements sparse matrices.
EFeatureClass
shogun feature class
virtual EPreprocessorType get_type() const
return a type of preprocessor
virtual SGSparseVector< ST > * apply_to_sparse_feature_vector(SGSparseVector< ST > *f, int32_t &len)=0
virtual SGSparseVector< ST > * apply_to_sparse_feature_matrix(CSparseFeatures< ST > *f)=0
virtual CFeatures * apply(CFeatures *features)
virtual const char * get_name() const
return the name of the preprocessor
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
Class Preprocessor defines a preprocessor interface.