10 #ifndef _CATTRIBUTE_FEATURES__H__ 11 #define _CATTRIBUTE_FEATURES__H__ 13 #include <shogun/lib/config.h> 21 #ifndef DOXYGEN_SHOULD_SKIP_THIS 30 #endif // DOXYGEN_SHOULD_SKIP_THIS 61 CFeatures* get_attribute(
char* attr_name);
69 void get_attribute_by_index(
int idx,
const char* &attr_name,
CFeatures* &attr_obj);
77 bool set_attribute(
char* attr_name,
CFeatures* attr_obj);
84 bool del_attribute(
char* attr_name);
90 int32_t get_num_attributes();
93 virtual const char*
get_name()
const {
return "AttributeFeatures"; }
125 virtual int32_t get_num_vectors()
const=0;
133 inline int32_t find_attr_index(
char* attr_name);
EFeatureClass
shogun feature class
Implements attributed features, that is in the simplest case a number of (attribute, value) pairs.
EFeatureType
shogun feature type
virtual const char * get_name() const
all of classes and functions are contained in the shogun namespace
DynArray< T_ATTRIBUTE > features
list of attributes (sorted)
The class Features is the base class of all feature objects.