12 #ifndef __GUIFEATURES__H
13 #define __GUIFEATURES__H
111 char* filename,
char* fclass,
char* type,
char* target,
112 int32_t size, int32_t comp_features);
114 bool save(
char* filename,
char* type,
char* target);
116 bool clean(
char* target);
118 bool reshape(
char* target, int32_t num_feat, int32_t num_vec);
178 template <
class CT,
class ST>
181 int32_t order=1, int32_t start=0, int32_t gap=0,
char rev=
'f',
CAlphabet* alpha=NULL)
186 SG_INFO(
"Converting CT STRING features to ST STRING ones (order=%i).\n",order)
187 bool free_alpha=
false;
205 SG_INFO(
"Conversion was successful.\n")
214 SG_ERROR(
"No features of class/type STRING/CT available.\n")
224 virtual const char*
get_name()
const {
return "GUIFeatures"; }
void add_train_features(CFeatures *f)
CFeatures * test_features
CDenseFeatures< float64_t > * convert_simple_word_to_simple_salzberg(CDenseFeatures< uint16_t > *src)
virtual const char * get_name() const
RAWDNA - letters 0,1,2,3.
bool set_test_features(CFeatures *f)
CTOPFeatures * convert_string_word_to_simple_top(CStringFeatures< uint16_t > *src)
CStringFeatures< char > * convert_simple_char_to_string_char(CDenseFeatures< char > *src)
CExplicitSpecFeatures * convert_string_byte_to_spec_word(CStringFeatures< uint16_t > *src, bool use_norm)
bool load(char *filename, char *fclass, char *type, char *target, int32_t size, int32_t comp_features)
EAlphabet get_alphabet() const
The class Alphabet implements an alphabet and alphabet utility functions.
bool save(char *filename, char *type, char *target)
Features that support dot products among other operations.
bool del_last_feature_obj(char *target)
CFKFeatures * convert_string_word_to_simple_fk(CStringFeatures< uint16_t > *src)
CStringFeatures< ST > * convert_string_char_to_string_generic(CStringFeatures< CT > *src, int32_t order=1, int32_t start=0, int32_t gap=0, char rev='f', CAlphabet *alpha=NULL)
void add_test_dotfeatures(CDotFeatures *f)
Class SGObject is the base class of all shogun objects.
bool set_convert_features(CFeatures *features, char *target)
void add_test_features(CFeatures *f)
CSparseFeatures< float64_t > * convert_simple_real_to_sparse_real(CDenseFeatures< float64_t > *src)
virtual EFeatureClass get_feature_class() const
CFeatures * get_train_features()
CAlphabet * get_alphabet()
bool set_train_features(CFeatures *f)
Features that compute the Spectrum Kernel feature space explicitly.
The class TOPFeatures implements TOP kernel features obtained from two Hidden Markov models...
all of classes and functions are contained in the shogun namespace
CFeatures * get_test_features()
CDenseFeatures< float64_t > * convert_simple_char_to_simple_align(CDenseFeatures< char > *src, float64_t gap_cost=0)
The class Features is the base class of all feature objects.
bool set_reference_features(char *target)
void add_train_dotfeatures(CDotFeatures *f)
bool reshape(char *target, int32_t num_feat, int32_t num_vec)
CFeatures * train_features
bool obtain_from_char_features(CStringFeatures< CT > *sf, int32_t start, int32_t p_order, int32_t gap, bool rev)
CDenseFeatures< float64_t > * convert_sparse_real_to_simple_real(CSparseFeatures< float64_t > *src)
The class FKFeatures implements Fischer kernel features obtained from two Hidden Markov models...
CFeatures * get_convert_features(char *target)