![]() |
MeLOn
|
This class implements an specialization of the AnnParser for xml files. More...
#include <AnnParser.h>
Public Member Functions | |
std::shared_ptr< ModelData > | parse_model (const std::string modelPath, const std::string modelName) |
Parsing function which is used to get the ANN data from a xml file. More... | |
![]() | |
virtual | ~ModelParser ()=default |
Virtual desctructor to enable inheritance. More... | |
Private Member Functions | |
tinyxml2::XMLError | _parse_vector_int (tinyxml2::XMLElement *parentElement, const std::string vectorName, std::vector< int > &vector) |
Parses child elements of an xml element into an vector of int. More... | |
tinyxml2::XMLError | _parse_vector_double (tinyxml2::XMLElement *parentElement, const std::string vectorName, std::vector< double > &vector) |
Parses child elements of an xml element into an vector of double. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
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 specialization of the AnnParser for xml files.
This abstarct class is used to implement an ANN file parser for xml files based on the interface provided by AnnParser.
|
private |
Parses child elements of an xml element into an vector of double.
[in] | parentElement | pointer to xml element whose child should get parsed |
[in] | vectorName | name of the child elements in the xml file |
[out] | vector | vector containing the parsed values |
|
private |
Parses child elements of an xml element into an vector of int.
[in] | parentElement | pointer to xml element whose child should get parsed |
[in] | vectorName | name of the child elements in the xml file |
[out] | vector | vector containing the parsed values |
|
virtual |
Parsing function which is used to get the ANN data from a xml file.
[in] | modelPath | Path to the location of the ANN file |
[in] | modelName | name of the network (name of the xml file) |
Implements melon::AnnParser.