37#ifndef PARAMETERS_PARSER_H
38#define PARAMETERS_PARSER_H
42#include "learn/learningParameters.h"
56 namespace ParametersParser {
96 const std::string& param,
97 Json::Value
const& value);
void setParameterFromString(Learn::LearningParameters ¶ms, const std::string ¶m, Json::Value const &value)
Given a parameter name, sets its value in given LearningParameters.
Definition: parametersParser.cpp:100
void loadParametersFromJson(const char *path, Learn::LearningParameters ¶ms)
Loads a given json file and fills the parameters it contains in given LearningParameters.
Definition: parametersParser.cpp:229
void setAllParamsFrom(const Json::Value &root, Learn::LearningParameters ¶ms)
Puts the parameters described in the derivative tree root in given LearningParameters.
Definition: parametersParser.cpp:64
void writeParametersToJson(const char *path, const Learn::LearningParameters ¶ms)
Write the LearningParameters given as arguments into the file at the given path, using the JSON forma...
Definition: parametersParser.cpp:238
void readConfigFile(const char *path, Json::Value &root)
Reads a given json file and puts the derivative tree in root.
Definition: parametersParser.cpp:44
Definition: parametersParser.h:51
Definition: parametersParser.h:47
Structure for simplifying the transmission of LearningParameters to functions.
Definition: learningParameters.h:53