Functions | |
PMMLLIB_EXPORT void | PMMLlib::PMMLlib::AddRegressionModel (std::string modelName, PMMLMiningFunction functionName, std::string targetFieldName) |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT void | PMMLlib::PMMLlib::AddRegressionTable () |
No property "intercept" will be set. More... | |
PMMLLIB_EXPORT void | PMMLlib::PMMLlib::AddRegressionTable (double intercept) |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT void | PMMLlib::PMMLlib::AddNumericPredictor (std::string neuronName, int exponent, double coefficient) |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT void | PMMLlib::PMMLlib::AddPredictorTerm (double coefficient, std::vector< std::string > fieldRef) |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT bool | PMMLlib::PMMLlib::HasIntercept () |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT double | PMMLlib::PMMLlib::GetRegressionTableIntercept () |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT int | PMMLlib::PMMLlib::GetNumericPredictorNb () |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT int | PMMLlib::PMMLlib::GetPredictorTermNb () |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT std::string | PMMLlib::PMMLlib::GetNumericPredictorName (int num_pred_index) |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT std::string | PMMLlib::PMMLlib::GetPredictorTermName (int num_pred_index) |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT double | PMMLlib::PMMLlib::GetNumericPredictorCoefficient (int num_pred_index) |
(The coefficient is the value of property "coefficient") More... | |
PMMLLIB_EXPORT double | PMMLlib::PMMLlib::GetPredictorTermCoefficient (int pred_term_index) |
(The coefficient is the value of property "coefficient") More... | |
PMMLLIB_EXPORT int | PMMLlib::PMMLlib::GetPredictorTermFieldRefNb (int pred_term_index) |
Specific to RegressionModel. More... | |
PMMLLIB_EXPORT std::string | PMMLlib::PMMLlib::GetPredictorTermFieldRefName (int pred_term_index, int field_index) |
(The name is the value of property "field") More... | |
PMMLLIB_EXPORT std::string | PMMLlib::PMMLlib::ReadRegressionStructure () |
Specific to RegressionModel. More... | |
xmlNodePtr | PMMLlib::PMMLlib::GetRegressionPtr (int reg_index) |
xmlNodePtr | PMMLlib::PMMLlib::GetRegressionPtr (std::string reg_name) |
void | PMMLlib::PMMLlib::CheckRegression () |
Called in all methods specific to the RegressionModel model. More... | |
Methods dedicated to linear regression
void PMMLlib::PMMLlib::AddNumericPredictor | ( | std::string | neuronName, |
int | exponent, | ||
double | coefficient | ||
) |
Specific to RegressionModel.
Add a numeric predictor to the Regression model.
neuronName | Value of property "name" |
exponent | Value of property "exponent" |
coefficient | Value of property "coefficient" |
Definition at line 2310 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentNode, and PMMLlib::PMMLlib::CheckRegression().
void PMMLlib::PMMLlib::AddPredictorTerm | ( | double | coefficient, |
std::vector< std::string > | fieldRef | ||
) |
Specific to RegressionModel.
Add a predictor term to the Regression model.
coefficient | Value of property "coefficient" |
fieldRef | List of values for property "field", one per FieldRef to add to the PredictorTerm |
Definition at line 2330 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentNode, and PMMLlib::PMMLlib::CheckRegression().
void PMMLlib::PMMLlib::AddRegressionModel | ( | std::string | modelName, |
PMMLMiningFunction | functionName, | ||
std::string | targetFieldName | ||
) |
Specific to RegressionModel.
Add a RegressionModel to the root node
modelName | Name of the model (Value of property "modelName") |
functionName | Value of property "functionName" |
targetFieldName | Value of Property "targetFieldName" |
Definition at line 2249 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelName, PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_currentModelType, PMMLlib::PMMLlib::_rootNode, PMMLlib::PMMLlib::CheckRegression(), PMMLlib::kLR, and PMMLlib::kREGRESSION.
void PMMLlib::PMMLlib::AddRegressionTable | ( | ) |
No property "intercept" will be set.
Add a RegressionTable to the Regression model. Specific to RegressionModel
Definition at line 2277 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_currentNode, and PMMLlib::PMMLlib::CheckRegression().
void PMMLlib::PMMLlib::AddRegressionTable | ( | double | intercept | ) |
Specific to RegressionModel.
Add a RegressionTable to the Regression model with a given value of property "intercept".
intercept | Value of property "intercept" |
Definition at line 2289 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_currentNode, and PMMLlib::PMMLlib::CheckRegression().
|
private |
Called in all methods specific to the RegressionModel model.
Check if the current model type is kLR. Throw an exception if the model type is not kLR.
Definition at line 2226 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelType, and PMMLlib::kLR.
Referenced by PMMLlib::PMMLlib::AddNumericPredictor(), PMMLlib::PMMLlib::AddPredictorTerm(), PMMLlib::PMMLlib::AddRegressionModel(), PMMLlib::PMMLlib::AddRegressionTable(), PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), PMMLlib::PMMLlib::ExportLinearRegressionPyStr(), PMMLlib::PMMLlib::GetNumericPredictorCoefficient(), PMMLlib::PMMLlib::GetNumericPredictorName(), PMMLlib::PMMLlib::GetNumericPredictorNb(), PMMLlib::PMMLlib::GetPredictorTermCoefficient(), PMMLlib::PMMLlib::GetPredictorTermFieldRefName(), PMMLlib::PMMLlib::GetPredictorTermFieldRefNb(), PMMLlib::PMMLlib::GetPredictorTermName(), PMMLlib::PMMLlib::GetPredictorTermNb(), PMMLlib::PMMLlib::GetRegressionTableIntercept(), PMMLlib::PMMLlib::HasIntercept(), and PMMLlib::PMMLlib::ReadRegressionStructure().
double PMMLlib::PMMLlib::GetNumericPredictorCoefficient | ( | int | num_pred_index | ) |
(The coefficient is the value of property "coefficient")
Get the coefficient of the numeric predictor given by its index. Specific to RegressionModel
num_pred_index | Index of the numeric predictor |
Definition at line 2504 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_getProp(), PMMLlib::PMMLlib::CheckRegression(), PMMLlib::PMMLlib::GetChildByName(), and CORBAEngineTest::i.
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
std::string PMMLlib::PMMLlib::GetNumericPredictorName | ( | int | num_pred_index | ) |
Specific to RegressionModel.
Get the name of the numeric predictor given by its index.
num_pred_index | Index of the numeric predictor |
Definition at line 2439 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_getProp(), PMMLlib::PMMLlib::CheckRegression(), PMMLlib::PMMLlib::GetChildByName(), and CORBAEngineTest::i.
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
int PMMLlib::PMMLlib::GetNumericPredictorNb | ( | ) |
Specific to RegressionModel.
Get the number of numeric predictors.
Definition at line 2393 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::CheckRegression(), and PMMLlib::PMMLlib::GetChildByName().
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
double PMMLlib::PMMLlib::GetPredictorTermCoefficient | ( | int | pred_term_index | ) |
(The coefficient is the value of property "coefficient")
Get the coefficient of the predictor term given by its index. Specific to RegressionModel
pred_term_index | Index of the predictor term |
Definition at line 2535 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_getProp(), PMMLlib::PMMLlib::CheckRegression(), PMMLlib::PMMLlib::GetChildByName(), and CORBAEngineTest::i.
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
std::string PMMLlib::PMMLlib::GetPredictorTermFieldRefName | ( | int | pred_term_index, |
int | field_index | ||
) |
(The name is the value of property "field")
Get the name of the field_index-th FieldRef for the pred_term_index-th predictor term. Specific to RegressionModel
pred_term_index | Index of the predictor term |
field_index | Index of the FieldRef |
Definition at line 2601 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_getProp(), PMMLlib::PMMLlib::CheckRegression(), PMMLlib::PMMLlib::GetChildByName(), and CORBAEngineTest::i.
int PMMLlib::PMMLlib::GetPredictorTermFieldRefNb | ( | int | index | ) |
Specific to RegressionModel.
Get the number of FieldRef for the predictor term given by its index.
indsex | Index of the predictor term |
Definition at line 2565 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::CheckRegression(), PMMLlib::PMMLlib::GetChildByName(), and CORBAEngineTest::i.
std::string PMMLlib::PMMLlib::GetPredictorTermName | ( | int | pred_term_index | ) |
Specific to RegressionModel.
Get the name of the predictor term given by its index.
pred_term_index | Index of the predictor term |
Definition at line 2468 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_getProp(), PMMLlib::PMMLlib::CheckRegression(), PMMLlib::PMMLlib::GetChildByName(), and CORBAEngineTest::i.
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
int PMMLlib::PMMLlib::GetPredictorTermNb | ( | ) |
Specific to RegressionModel.
Get the number of predictor terms.
Definition at line 2416 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::CheckRegression(), and PMMLlib::PMMLlib::GetChildByName().
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
|
private |
Referenced by PMMLlib::PMMLlib::SetCurrentModel().
|
private |
Get the pointeur to the regression model node.
name | Name of the regression model |
Definition at line 2237 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::GetPtr(), and PMMLlib::PMMLlib::GetTypeString().
double PMMLlib::PMMLlib::GetRegressionTableIntercept | ( | ) |
Specific to RegressionModel.
Get the value of property "intercept" in the RegressionTable.
Definition at line 2377 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_getProp(), PMMLlib::PMMLlib::CheckRegression(), and PMMLlib::PMMLlib::GetChildByName().
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
bool PMMLlib::PMMLlib::HasIntercept | ( | ) |
Specific to RegressionModel.
Check if the RegressionTable has a property called "intercept".
Definition at line 2352 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_stringToXmlChar(), gui.CONNECTOR::b, PMMLlib::PMMLlib::CheckRegression(), and PMMLlib::PMMLlib::GetChildByName().
Referenced by PMMLlib::PMMLlib::ExportLinearRegressionCpp(), PMMLlib::PMMLlib::ExportLinearRegressionFortran(), and PMMLlib::PMMLlib::ExportLinearRegressionPyStr().
std::string PMMLlib::PMMLlib::ReadRegressionStructure | ( | ) |
Specific to RegressionModel.
Read the structure of the regression model
Definition at line 2874 of file PMMLlib.cxx.
References PMMLlib::PMMLlib::_currentModelNode, PMMLlib::PMMLlib::_getProp(), PMMLlib::PMMLlib::CheckRegression(), and PMMLlib::PMMLlib::GetChildByName().