31 #ifndef GRT_POST_PROCESSING_HEADER
32 #define GRT_POST_PROCESSING_HEADER
81 virtual bool reset(){
return true; }
198 enum PostprocessingInputModes{INPUT_MODE_NOT_SET=0,INPUT_MODE_PREDICTED_CLASS_LABEL,INPUT_MODE_CLASS_LIKELIHOODS};
199 enum PostprocessingOutputModes{OUTPUT_MODE_NOT_SET=0,OUTPUT_MODE_PREDICTED_CLASS_LABEL,OUTPUT_MODE_CLASS_LIKELIHOODS};
224 std::string postProcessingType;
226 UINT postProcessingInputMode;
227 UINT postProcessingOutputMode;
230 static StringPostProcessingMap *getMap() {
232 return stringPostProcessingMap;
236 static StringPostProcessingMap *stringPostProcessingMap;
237 static UINT numPostProcessingInstances;
241 template<
typename T >
PostProcessing *newPostProcessingModuleInstance() {
return new T; }
243 template<
typename T >
247 getMap()->insert( std::pair< std::string,
PostProcessing*(*)() >(newPostProcessingModuleName, &newPostProcessingModuleInstance< T > ) );
253 #endif //GRT_POST_PROCESSING_HEADER
virtual bool deepCopyFrom(const PostProcessing *postProcessing)
virtual ~PostProcessing(void)
std::string getPostProcessingType() const
bool getIsPostProcessingInputModeClassLikelihoods() const
bool savePostProcessingSettingsToFile(std::fstream &file) const
bool getInitialized() const
virtual bool saveModelToFile(std::fstream &file) const
virtual bool process(const VectorFloat &inputVector)
This is the main base class that all GRT machine learning algorithms should inherit from...
UINT getPostProcessingInputMode() const
bool getIsPostProcessingOutputModePredictedClassLabel() const
virtual bool loadModelFromFile(std::string filename)
UINT getPostProcessingOutputMode() const
virtual bool loadModelFromFile(std::fstream &file)
bool getIsPostProcessingInputModePredictedClassLabel() const
bool copyBaseVariables(const PostProcessing *postProcessingModule)
VectorFloat getProcessedData() const
UINT getNumOutputDimensions() const
bool getIsPostProcessingOutputModeClassLikelihoods() const
static PostProcessing * createInstanceFromString(std::string const &postProcessingType)
UINT getNumInputDimensions() const
bool loadPostProcessingSettingsFromFile(std::fstream &file)
std::map< std::string, PostProcessing *(*)() > StringPostProcessingMap
virtual bool saveModelToFile(std::string filename) const
PostProcessing * createNewInstance() const