38 preproc = orig.preproc;
39 preprocessed = orig.preprocessed;
50 SG_INFO(
"Feature object loaded (%p)\n",
this)
61 void CFeatures::init()
68 SG_ADD((
CSGObject**) &preprocessed,
"preprocessed",
"Array of preprocessed.",
95 if (num<preproc->get_num_elements() && num>=0)
109 if ((*preprocessed)[i])
124 if (num<preproc->get_num_elements() && num>=0)
135 for (int32_t i=0; i<num_preproc; i++)
137 SG_INFO(
"preproc[%d]=%s applied=%s\n",i,
145 ASSERT(num<preprocessed->get_num_elements() && num>=0);
146 (*preprocessed)[num]=
true;
151 ASSERT(num<preprocessed->get_num_elements() && num>=0);
152 return (*preprocessed)[num];
219 SG_ERROR(
"ERROR UNKNOWN FEATURE CLASS")
264 SG_ERROR(
"ERROR UNKNOWN FEATURE TYPE\n")
297 return (properties & p) != 0;
307 properties &= (properties | p) ^ p;
342 SG_ERROR(
"%s::copy_subset(): copy_subset and therefore model storage of "
343 "CMachine (required for cross-validation and model-selection is "
344 "not yet implemented yet. Ask developers!\n",
get_name());
350 SG_WARNING(
"%s::copy_dimension_subset():: Is not yet implemented!\n",
virtual const char * get_name() const =0
CSubsetStack * m_subset_stack
virtual void save(CFile *writer)
virtual void add_subset_in_place(SGVector< index_t > subset)
virtual bool reshape(int32_t num_features, int32_t num_vectors)
virtual bool get_feature_class_compatibility(EFeatureClass rhs) const
void set_preprocessed(int32_t num)
CFeatures(int32_t size=0)
void set_property(EFeatureProperty p)
#define SG_NOTIMPLEMENTED
CPreprocessor * get_preprocessor(int32_t num) const
int32_t get_num_elements() const
EFeatureClass
shogun feature class
class to add subset support to another class. A CSubsetStackStack instance should be added and wrappe...
int32_t get_num_preprocessors() const
virtual void del_preprocessor(int32_t num)
virtual void subset_changed_post()
bool check_feature_compatibility(CFeatures *f) const
void list_feature_obj() const
virtual CSubsetStack * get_subset_stack()
virtual void add_subset(SGVector< index_t > subset)
Class SGObject is the base class of all shogun objects.
virtual void remove_all_subsets()
void unset_property(EFeatureProperty p)
bool delete_element(int32_t idx)
virtual void add_subset_in_place(SGVector< index_t > subset)
bool is_preprocessed(int32_t num) const
A File access base class.
virtual EFeatureClass get_feature_class() const =0
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
virtual void load(CFile *loader)
virtual void add_preprocessor(CPreprocessor *p)
virtual CFeatures * copy_dimension_subset(SGVector< index_t > dims)
all of classes and functions are contained in the shogun namespace
virtual void remove_subset()
int32_t get_num_preprocessed() const
int32_t get_cache_size() const
virtual CFeatures * copy_subset(SGVector< index_t > indices)
The class Features is the base class of all feature objects.
Class Preprocessor defines a preprocessor interface.
CSGObject * get_element(int32_t index) const
virtual void remove_subset()
void push_back(CSGObject *e)
void clean_preprocessors()
bool delete_element(int32_t idx)
bool has_property(EFeatureProperty p) const
virtual void remove_all_subsets()
EFeatureProperty
shogun feature properties
void list_preprocessors()
const T & get_element(int32_t idx1, int32_t idx2=0, int32_t idx3=0) const
virtual void add_subset(SGVector< index_t > subset)
virtual EFeatureType get_feature_type() const =0