![]() |
MeLOn
|
This class is a abstract parent class for model parser implemented in the MeLOn library. More...
#include <modelParser.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 model data from a file. More... | |
virtual | ~ModelParser ()=default |
Virtual desctructor to enable inheritance. More... | |
Protected Member Functions | |
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... | |
Static Protected Member Functions | |
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... | |
Protected Attributes | |
std::string | _modelPath |
std::string | _modelName |
This class is a abstract parent class for model parser implemented in the MeLOn library.
|
virtualdefault |
Virtual desctructor to enable inheritance.
|
protected |
Applies the correct format to the path given by the user.
[in] | modelPath | Path to the location of the model file |
[in] | modelName | name of the model |
[in] | fileType | type of the file |
|
staticprotected |
Turns a string containing the name of an scaler type in the correct enum representation.
[in] | scalerParameterName | is a string containing the name of the scaler parameter |
|
staticprotected |
Turns a string containing the name of an scaler type in the correct enum representation.
[in] | scalerTypeName | is a string containing the name of the scaler type |
|
pure virtual |
Abstract function for defining the structure of the parsing function which is used to get the model data from a file.
[in] | modelPath | Path to the location of the model file |
[in] | modelName | name of the model |
Implemented in melon::AnnParser, melon::GpParser, melon::SvmParser, melon::AnnParserXml, and melon::AnnParserCsv.
|
protected |
Name of the network
|
protected |
Path to the location of the ANN file