31 #ifndef GRT_FEATURE_EXTRACTION_HEADER 32 #define GRT_FEATURE_EXTRACTION_HEADER 91 virtual bool clear()
override;
98 bool getInitialized()
const;
105 bool getFeatureDataReady()
const;
146 GRT_DEPRECATED_MSG(
"getFeatureExtractionType is deprecated, use getId() instead", std::string getFeatureExtractionType()
const );
161 bool saveFeatureExtractionSettingsToFile( std::fstream &file )
const;
168 bool loadFeatureExtractionSettingsFromFile( std::fstream &file );
170 std::string featureExtractionType;
172 bool featureDataReady;
176 static StringFeatureExtractionMap *getMap() {
177 if( !stringFeatureExtractionMap ){ stringFeatureExtractionMap =
new StringFeatureExtractionMap; }
178 return stringFeatureExtractionMap;
182 static StringFeatureExtractionMap *stringFeatureExtractionMap;
183 static UINT numFeatureExtractionInstances;
189 template<
typename T >
193 getMap()->insert( std::pair< std::string,
FeatureExtraction*(*)()>(newModuleId, &createNewFeatureExtractionModule< T > ) );
199 #endif //GRT_FEATURE_EXTRACTION_HEADER
virtual bool save(const std::string &filename) const
GRT_DEPRECATED_MSG("saveModelToFile(std::string filename) is deprecated, use save(const std::string &filename) instead", virtual bool saveModelToFile(const std::string &filename) const )
virtual bool load(const std::string &filename)
This is the main base class that all GRT machine learning algorithms should inherit from...