![]() |
MeLOn
|
This class implements a support vector machine file parser. More...
#include <svmParser.h>
Public Member Functions | |
std::shared_ptr< ModelData > | parse_model (const std::string modelPath, const std::string modelName) override |
Function for parsing the support vector machine data from a file. | |
![]() | |
virtual | ~ModelParser ()=default |
Virtual desctructor to enable inheritance. | |
Static Public Member Functions | |
static KERNEL_FUNCTION | string_to_kernel_function (const std::string &kernelName) |
Turns string with kernel name into enum representation. | |
static std::shared_ptr< ScalerData > | parse_scaler (json scalerJson) |
Function for parsing scaler data from json object. | |
Additional Inherited Members | |
![]() | |
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. | |
std::string | _format_folder_path (const std::string modelPath) |
Applies the correct format to the path given by the user. | |
![]() | |
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. | |
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. | |
![]() | |
std::string | _modelPath |
std::string | _modelName |
This class implements a support vector machine file parser.
|
overridevirtual |
Function for parsing the support vector machine data from a file.
[in] | modelPath | Path to the location of the support vector machine file |
[in] | modelName | name of the model |
Implements melon::ModelParser.
|
static |
Function for parsing scaler data from json object.
[in] | scalerJson | json object containing the scaler specifications |
|
static |
Turns string with kernel name into enum representation.
[in] | kernelName | is a std::string with the kernel name |