![]() |
MeLOn
|
This class implements an abstract parent class for ANN file parser. More...
#include <AnnParser.h>
Public Member Functions | |
virtual std::shared_ptr< ModelData > | parse_model (const std::string modelPath, const std::string modelName)=0 |
Abstract function for defining the structure of the parsing function which is used to get the ANN data from a file. More... | |
![]() | |
virtual | ~ModelParser ()=default |
Virtual desctructor to enable inheritance. More... | |
Protected Member Functions | |
ACTIVATION_FUNCTION | _string_to_activation_function (const std::string &activationFunctionName) |
Turns a string containing the name of an activation function in the correct enum representation. More... | |
![]() | |
std::string | _format_file_path (const std::string modelPath, const std::string modelName, const MODEL_FILE_TYPE fileType) |
Applies the correct format to the path given by the user. More... | |
Additional Inherited Members | |
![]() | |
static SCALER_TYPE | _string_to_scaler_type (const std::string scalerTypeName) |
Turns a string containing the name of an scaler type in the correct enum representation. More... | |
static SCALER_PARAMETER | _string_to_scaler_parameter (const std::string scalerParameterName) |
Turns a string containing the name of an scaler type in the correct enum representation. More... | |
![]() | |
std::string | _modelPath |
std::string | _modelName |
This class implements an abstract parent class for ANN file parser.
This abstarct class is used to define a general interface for ANN fileparsers. Child classes can implement the defined interface functions according to their filetype.
|
protected |
Turns a string containing the name of an activation function in the correct enum representation.
[in] | activationFunctionName | is a string containing the name of an activation function |
|
pure virtual |
Abstract function for defining the structure of the parsing function which is used to get the ANN data from a file.
[in] | modelPath | Path to the location of the ANN file |
[in] | modelName | name of the network (either foldername in which csv files are stored or name of an xml file, depending on the filetype) |
Implements melon::ModelParser.
Implemented in melon::AnnParserXml, and melon::AnnParserCsv.