Functions | |
| PMMLLIB_EXPORT | PMMLlib::PMMLlib::PMMLlib (std::string file, bool log=false) |
| PMMLLIB_EXPORT | PMMLlib::PMMLlib::PMMLlib (bool log=false) |
| This constructor is mandatory for Swig because it can be used with no parameters. More... | |
| PMMLLIB_EXPORT | PMMLlib::PMMLlib::~PMMLlib () |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::SetCurrentModel (std::string modelName, PMMLType type) |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::SetCurrentModel (std::string modelName) |
| Throw an exception if there is no model or more than one model with name "modelName" in the PMML file. More... | |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::SetCurrentModel () |
| Throw an exception if no model is found or if there are more than one model in the PMLL file. More... | |
| PMMLLIB_EXPORT std::string | PMMLlib::PMMLlib::makeLog () const |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::printLog () const |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::AddDataField (std::string name, std::string displayName, std::string optype, std::string dataType, std::string closure, double leftMargin, double rightMargin, bool interval=false) |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::AddMiningSchema (std::string name, std::string usageType) |
| Common to all models. More... | |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::SetHeader (std::string copyright, std::string description, std::string appName, std::string appVersion, std::string annotation) |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::UnlinkNode () |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::BackupNode () |
| PMMLLIB_EXPORT int | PMMLlib::PMMLlib::GetModelsNb () |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::Write () |
| PMMLLIB_EXPORT void | PMMLlib::PMMLlib::Write (std::string file) |
| PMMLLIB_EXPORT PMMLType | PMMLlib::PMMLlib::GetCurrentModelType () |
| type is kUNDEFINED if no model is set or if model type is not handled More... | |
| PMMLLIB_EXPORT std::string | PMMLlib::PMMLlib::GetCurrentModelName () |
| name is "" if no model is set More... | |
| xmlNodePtr | PMMLlib::PMMLlib::GetChildByName (xmlNodePtr node, std::string nodename) |
| xmlNodePtr | PMMLlib::PMMLlib::GetPtr (int ann_index, std::string name) |
| xmlNodePtr | PMMLlib::PMMLlib::GetPtr (std::string ann_name, std::string name) |
| void | PMMLlib::PMMLlib::CountModels () |
| int | PMMLlib::PMMLlib::CountNeuralNetModels () |
| int | PMMLlib::PMMLlib::CountRegressionModels () |
| void | PMMLlib::PMMLlib::SetRootNode () |
| std::string | PMMLlib::PMMLlib::GetModelName (xmlNodePtr node) |
| std::string | PMMLlib::PMMLlib::GetTypeString () |
Common methods to all kinds of PMML files and models
| void PMMLlib::PMMLlib::AddDataField | ( | std::string | fieldName, |
| std::string | displayName, | ||
| std::string | optype, | ||
| std::string | dataType, | ||
| std::string | closure, | ||
| double | leftMargin, | ||
| double | rightMargin, | ||
| bool | interval = false |
||
| ) |
Add a DataField node to the DataDictionnary node
| fieldName | Value of property "name" |
| displayName | Value of property "displayName" |
| optype | Value of property "optype" |
| dataType | Value of property "dataType" |
| closure | Value of property "closure" in node Interval |
| leftMargin | Value of property "leftMargin" in node Interval |
| rightMargin | Value of property "rightMargin" in node Interval |
| interval | Flag to add a node Interval (if true) |
Definition at line 1317 of file PMMLlib.cxx.
| void PMMLlib::PMMLlib::AddMiningSchema | ( | std::string | name, |
| std::string | usageType | ||
| ) |
Common to all models.
Add the MiningSchema node.
| name | Value of property "name". |
| usageType | Value of property "usageType". |
Definition at line 286 of file PMMLlib.cxx.
| void PMMLlib::PMMLlib::BackupNode | ( | ) |
Make a backup of the current model node.
Definition at line 535 of file PMMLlib.cxx.
|
private |
Count the tags of all types of models (NeuralNetwork and RegressionModel).
Definition at line 341 of file PMMLlib.cxx.
|
private |
Count NeuralNetwork models tags in the PMML file.
Definition at line 354 of file PMMLlib.cxx.
|
private |
Count RegressionModel models tags in the PMML file.
Definition at line 375 of file PMMLlib.cxx.
|
private |
Get the child of a node from the name of this node
| node | Start node for the research |
| nodeName | Name of the node to find |
Definition at line 310 of file PMMLlib.cxx.
| std::string PMMLlib::PMMLlib::GetCurrentModelName | ( | ) |
name is "" if no model is set
Get the current model name.
Definition at line 514 of file PMMLlib.cxx.
| PMMLType PMMLlib::PMMLlib::GetCurrentModelType | ( | ) |
type is kUNDEFINED if no model is set or if model type is not handled
Get the current model type.
Definition at line 496 of file PMMLlib.cxx.
References PMMLlib::kANN, PMMLlib::kLR, and PMMLlib::kUNDEFINED.
|
private |
Get the name of the XML node of a given model
| node | Model node |
Definition at line 406 of file PMMLlib.cxx.
| int PMMLlib::PMMLlib::GetModelsNb | ( | ) |
|
private |
Get a pointer to the index-th node named name
| index | Index of the node to search |
| name | Name of the node |
Definition at line 419 of file PMMLlib.cxx.
References yacsorb.CORBAEngineTest::i.
|
private |
Get a pointer to the node named name whose 'modelName' attribute is ann_name
| modelName | Model name of the node to search |
| nodeName | Name of the node |
Definition at line 445 of file PMMLlib.cxx.
|
private |
Get the tag of the current model.
Definition at line 473 of file PMMLlib.cxx.
References PMMLlib::kANN, and PMMLlib::kLR.
| std::string PMMLlib::PMMLlib::makeLog | ( | ) | const |
Make the string used by PMMLlib::printLog.
Definition at line 213 of file PMMLlib.cxx.
| PMMLlib::PMMLlib::PMMLlib | ( | bool | log = false | ) |
This constructor is mandatory for Swig because it can be used with no parameters.
Constructor to create a PMML file.
| log | Flag to print logs or not |
Definition at line 94 of file PMMLlib.cxx.
| PMMLlib::PMMLlib::PMMLlib | ( | std::string | file, |
| bool | log = false |
||
| ) |
Constructor to read a PMML file.
| file | Name of the PMML file to read |
| log | Flag to print logs or not |
Definition at line 57 of file PMMLlib.cxx.
| void PMMLlib::PMMLlib::printLog | ( | ) | const |
Print some information about the current PMML object.
Definition at line 226 of file PMMLlib.cxx.
References gui.logview::log.
| void PMMLlib::PMMLlib::SetCurrentModel | ( | ) |
Throw an exception if no model is found or if there are more than one model in the PMLL file.
Set the current model and its type.
Definition at line 183 of file PMMLlib.cxx.
References PMMLlib::kANN, and PMMLlib::kLR.
| void PMMLlib::PMMLlib::SetCurrentModel | ( | std::string | modelName | ) |
Throw an exception if there is no model or more than one model with name "modelName" in the PMML file.
Set the current model and its type.
| modelName | Name of the model to load (ie content of 'modelName' attribute) |
Definition at line 150 of file PMMLlib.cxx.
| void PMMLlib::PMMLlib::SetCurrentModel | ( | std::string | modelName, |
| PMMLType | type | ||
| ) |
Set the current model and its type.
| modelName | Name of the model to load (ie content of 'modelName' attribute) |
| type | Type of PMML to read: one of kANN or kLR |
Definition at line 124 of file PMMLlib.cxx.
References PMMLlib::kANN, and PMMLlib::kLR.
| void PMMLlib::PMMLlib::SetHeader | ( | std::string | copyright, |
| std::string | description, | ||
| std::string | appName, | ||
| std::string | appVersion, | ||
| std::string | annotation | ||
| ) |
Set the header node in the tree.
| copyright | Copyright of the PMML file |
| description | Description of the model |
| appName | Name of the application that produced the file |
| appVersion | Version of the application that produced the file |
| annotation | Some annotation |
Definition at line 263 of file PMMLlib.cxx.
|
private |
Set the root node in the tree:
Definition at line 238 of file PMMLlib.cxx.
| void PMMLlib::PMMLlib::UnlinkNode | ( | ) |
| void PMMLlib::PMMLlib::Write | ( | ) |
| void PMMLlib::PMMLlib::Write | ( | std::string | file | ) |
Save the XML tree in a given file
| Name | of the file |
Definition at line 576 of file PMMLlib.cxx.
| PMMLlib::PMMLlib::~PMMLlib | ( | ) |
Destructor of the class.
Definition at line 110 of file PMMLlib.cxx.