|
SHOGUN
v1.1.0
|
The class DummyFeatures implements features that only know the number of feature objects (but don't actually contain any).
This is used in the CCustomKernel.
Definition at line 23 of file DummyFeatures.h.

Public Member Functions | |
| CDummyFeatures () | |
| CDummyFeatures (int32_t num) | |
| CDummyFeatures (const CDummyFeatures &orig) | |
| virtual | ~CDummyFeatures () |
| virtual int32_t | get_num_vectors () const |
| virtual int32_t | get_size () |
| virtual CFeatures * | duplicate () const |
| EFeatureType | get_feature_type () |
| virtual EFeatureClass | get_feature_class () |
| virtual const char * | get_name () const |
Public Member Functions inherited from CFeatures | |
| CFeatures (int32_t size=0) | |
| CFeatures (const CFeatures &orig) | |
| CFeatures (CFile *loader) | |
| virtual | ~CFeatures () |
| virtual int32_t | add_preprocessor (CPreprocessor *p) |
| set preprocessor | |
| virtual CPreprocessor * | del_preprocessor (int32_t num) |
| del current preprocessor | |
| CPreprocessor * | get_preprocessor (int32_t num) |
| get current preprocessor | |
| void | set_preprocessed (int32_t num) |
| bool | is_preprocessed (int32_t num) |
| int32_t | get_num_preprocessed () |
| get whether specified preprocessor (or all if num=1) was/were already applied | |
| int32_t | get_num_preprocessors () const |
| void | clean_preprocessors () |
| int32_t | get_cache_size () |
| virtual bool | reshape (int32_t num_features, int32_t num_vectors) |
| void | list_feature_obj () |
| virtual void | load (CFile *loader) |
| virtual void | save (CFile *writer) |
| bool | check_feature_compatibility (CFeatures *f) |
| bool | has_property (EFeatureProperty p) |
| void | set_property (EFeatureProperty p) |
| void | unset_property (EFeatureProperty p) |
| virtual void | set_subset (CSubset *subset) |
| virtual void | remove_subset () |
| virtual void | subset_changed_post () |
| index_t | subset_idx_conversion (index_t idx) const |
| bool | has_subset () const |
| virtual CFeatures * | copy_subset (SGVector< index_t > indices) |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| virtual bool | is_generic (EPrimitiveType *generic) const |
| template<class T > | |
| void | set_generic () |
| void | unset_generic () |
| virtual void | print_serializable (const char *prefix="") |
| virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
| virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
| void | set_global_io (SGIO *io) |
| SGIO * | get_global_io () |
| void | set_global_parallel (Parallel *parallel) |
| Parallel * | get_global_parallel () |
| void | set_global_version (Version *version) |
| Version * | get_global_version () |
| SGVector< char * > | get_modelsel_names () |
| char * | get_modsel_param_descr (const char *param_name) |
| index_t | get_modsel_param_index (const char *param_name) |
Protected Attributes | |
| int32_t | num_vectors |
Protected Attributes inherited from CFeatures | |
| CSubset * | m_subset |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Protected Member Functions inherited from CSGObject | |
| virtual void | load_serializable_pre () throw (ShogunException) |
| virtual void | load_serializable_post () throw (ShogunException) |
| virtual void | save_serializable_pre () throw (ShogunException) |
| virtual void | save_serializable_post () throw (ShogunException) |
| CDummyFeatures | ( | ) |
default constructor
Definition at line 6 of file DummyFeatures.cpp.
| CDummyFeatures | ( | int32_t | num | ) |
constructor
| num | number of feature vectors |
Definition at line 12 of file DummyFeatures.cpp.
| CDummyFeatures | ( | const CDummyFeatures & | orig | ) |
copy constructor
Definition at line 17 of file DummyFeatures.cpp.
|
virtual |
destructor
Definition at line 23 of file DummyFeatures.cpp.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
get number of feature vectors
Implements CFeatures.
Definition at line 27 of file DummyFeatures.cpp.
|
virtual |
get size of features (always 1)
Implements CFeatures.
Definition at line 32 of file DummyFeatures.cpp.
|
protected |
number of feature vectors
Definition at line 64 of file DummyFeatures.h.