I have converted a R model into PMML, using r2pmml.
I am now supposed to use this model in the C++ calculation module of machine but I'm a bit lost (I have never used C++ before). I can't use Java PMML evaluation engines (as proposed in this answer) so I guess I have to find a "C++ based PMML evaluation engine".
PMMLlib seems to be used to create PMML files from C++, not to read them. I have found numerous XML parsers (pugixml, tinyxml2, XmlLite) for C++ but I don't know if any of these can be used to read PMML.
And if they can and I understood correctly the way the work, they will create a Document Object Model which will contain my model and I will be able to use this object with XPath ?
Otherwise, I would like to know how to parse a PMML file in C++ and how to use the resulting object.
randomForest
algorithm generates rather simple trees. I would attempt to translate them to C++ source code, compile and run them natively. I think it will be difficult to achieve decent performance with XPath. – Sanfordsanfourdr2pmml
package with your own Java classes that implement a functionr2cpp
or something like it. – Sanfordsanfourd