30 #include <libxml/xpathInternals.h>
41 std::ostringstream ss;
103 std::string displayName,
105 std::string dataType,
109 bool interval=
false);
111 std::string usageType);
113 std::string description,
115 std::string appVersion,
116 std::string annotation);
125 xmlNodePtr GetChildByName(xmlNodePtr node,
126 std::string nodename);
127 xmlNodePtr GetPtr(
int ann_index,
129 xmlNodePtr GetPtr(std::string ann_name,
132 int CountNeuralNetModels();
133 int CountRegressionModels();
135 std::string GetModelName(xmlNodePtr node);
136 std::string GetTypeString();
149 std::string inputName,
151 std::string dataType,
152 double orig1,
double norm1,
153 double orig2,
double norm2);
159 std::vector<double> weights);
161 std::string outputName,
163 std::string dataType,
164 double orig1,
double norm1,
165 double orig2,
double norm2);
184 std::string ann_name);
187 xmlNodePtr GetNeuralNetPtr(std::string ann_name);
188 xmlNodePtr GetNeuralNetPtr(
int ann_index);
189 void CheckNeuralNetwork();
200 std::string targetFieldName);
207 std::vector<std::string> fieldRef);
212 PMMLLIB_EXPORT std::string GetNumericPredictorName(
int num_pred_index);
213 PMMLLIB_EXPORT std::string GetPredictorTermName(
int num_pred_index);
214 PMMLLIB_EXPORT double GetNumericPredictorCoefficient(
int num_pred_index);
215 PMMLLIB_EXPORT double GetPredictorTermCoefficient(
int pred_term_index);
216 PMMLLIB_EXPORT int GetPredictorTermFieldRefNb(
int pred_term_index);
217 PMMLLIB_EXPORT std::string GetPredictorTermFieldRefName(
int pred_term_index,
222 xmlNodePtr GetRegressionPtr(std::string reg_name);
223 void CheckRegression();
233 void fillVectorsForExport(
int nInput,
int nOutput,
int nHidden,
int normType,
234 std::vector<double> &minInput, std::vector<double> &maxInput,
235 std::vector<double> &minOutput, std::vector<double> &maxOutput,
236 std::vector<double> &valW );
239 std::string functionName,
242 std::string functionName,
245 std::string functionName,
250 void ExportNeuralNetworkCpp(std::string file,
251 std::string functionName,
253 void ExportNeuralNetworkFortran(std::string file,
254 std::string functionName,
256 void ExportNeuralNetworkPython(std::string file,
257 std::string functionName,
259 std::string ExportNeuralNetworkPyStr(std::string functionName,
262 void ExportLinearRegressionCpp(std::string,
265 void ExportLinearRegressionFortran(std::string,
268 void ExportLinearRegressionPython(std::string,
271 std::string ExportLinearRegressionPyStr(std::string functionName,
281 std::string _xmlCharToString(
const xmlChar *xs)
const;
291 xmlChar * _stringToXmlChar(
const std::string &s)
const;
293 std::string _getProp(
const xmlNodePtr node,
294 std::string
const & prop )
const;
std::string _pmmlFile
Name of the associated PMML file.
xmlNodePtr _currentModelNode
Pointer to the current model node
int _nbModels
Number of models (all kinds)
std::string _currentModelName
Name of the current model
xmlDocPtr _doc
Associated DOM documents.
PMMLType _currentModelType
Type of the current model.
xmlNodePtr _rootNode
Root node of the document.
xmlNodePtr _currentNode
Pointer to the current node
xmlNodePtr GetRegressionPtr(int reg_index)
std::string NumberToString(T Number)