Questions tagged [pmml]

The Predictive Model Markup Language aka `PMML` is an `XML`-based markup language developed by the Data Mining Group (DMG) to provide a way for applications to define models related to predictive analytics and data mining and to share those models between `PMML`-compliant applications.

The Predictive Model Markup Language aka PMML is an XML-based markup language developed by the Data Mining Group (DMG) to provide a way for applications to define models related to predictive analytics and data mining and to share those models between PMML-compliant applications.

PMML provides applications a vendor-independent method of defining models so that proprietary issues and incompatibilities are no longer a barrier to the exchange of models between applications. It allows users to develop models within one vendor's application and use other vendors' applications to visualize, analyze, evaluate or otherwise use the models. Previously, this was very difficult, but with PMML, the exchange of models between compliant applications is straightforward.

Since PMML is an XML-based standard, the specification comes in the form of an XML schema.

Although PMML is the first and still most widely-used standard for machine learning and regression models, the DMG more recently created a JSON-based standard, Portable Format for Analytics (PFA) which includes more flexibility for pre- and post-processing by abstracting general math operations as PFA documents.

References:

PMML: An Open Standard for Sharing Models in The R Journal, Vol. 1/1, May 2009

PMML standard v4.3 at dmg.org

298 questions
0
votes
0 answers

Score mismatch while using JPMML to evaluate a SAS produced PMML file

I have a PMML generated from SAS Miner that I can't get properly evaluated using JPMML 1.2.6. i am getting a significant difference in scores when comparing with SAS. Earlier,I was getting an FMTWIDTH error and resolved it using the solution…
DD002727
  • 1
  • 3
0
votes
1 answer

What is the official specification for PMML substring handling of long strings?

Given a substring Definition of 1 2 What is the official specification on what will happen if the string "helloworld" is the input? Is…
pettinato
  • 1,472
  • 2
  • 19
  • 39
0
votes
0 answers

Type error in jpmml

I'm testing jpmml-evaluator. I have the following code: PMML pmml = readPMML(new File(file)); ModelEvaluatorFactory mef = ModelEvaluatorFactory.newInstance(); ModelEvaluator modelEvaluator = mef.newModelManager(pmml); Evaluator eval =…
MiraLief
  • 45
  • 6
0
votes
0 answers

Internal in PMML

I'm currently working on a program that generates a PMML file. I'm starting with decision tree model. In the PMML website, in a example of tree model, I see this: What is this…
MiraLief
  • 45
  • 6
0
votes
1 answer

R PMML probabilities precision

Using PMML model file to score a random forest. When scoring getting the following output. Is there a way to increase the number of decimal points for probability? (ie. 0.8 to 0.8000 or 0.2 to 0.2000) library(randomForest) library(pmml) iris.rf <-…
Naveenan
  • 345
  • 1
  • 4
  • 16
0
votes
1 answer

Integrate PMML to MongoDB

I have build a supervised learning model in R, and exported the model/decision rules in PMML format. I was hoping I could link the PMML straightforwardly to MongoDB using something like the JPMML library (as JPMML integrates well with…
qwerty
  • 11
  • 1
0
votes
1 answer

How to producing text models in pmml

pmml 4.2 supports text model as via TextModel element and transformations using TextIndex element http://www.dmg.org/v4-2-1/Text.html and http://www.dmg.org/v4-2-1/Transformations.html#xsdElement_TextIndex I am working in R and currently pmml…
the M
  • 125
  • 2
  • 10
0
votes
2 answers

Caret Model how to train the final model using optimized parameters?

train_control <- trainControl(method='cv', number=10) model <- train(Class ~ Age+BMI+DBP+DPF+NumPregnancies+PG2+SI2+TSFT, method ='rf',data=input,trControl=train_control) pmml(model$finalModel) #Error in names(field$class) <- var.names :…
madawa
  • 496
  • 6
  • 24
0
votes
1 answer

Generating Pmml code for data calculations in R

I am generating some derived fields from a data set given to me. Below is an example of one such derived field. I am calculating age from birth date. Is there a way to generate pmml code for such calculations. age <- as.numeric(format(Sys.Date(),…
user3641528
  • 101
  • 1
  • 7
0
votes
1 answer

naive bayes feature vectors in pmml

I am trying to build my own pmml exporter for Naive Bayes model that I have built in scikit learn. In reading the PMML documentation it seems that for each feature vector you can either output the model in terms of count data if it is discrete or…
cmlakhan
  • 127
  • 1
  • 7
0
votes
1 answer

What should be the input to the pmml file while using jpmml openscoring REST api

I am currently using jpmml openscoring REST API...https://github.com/jpmml/openscoring I have successfully installed the openscoring REST api and hosted my rules.pmml file in a local Tomcat server. my pmml file is very similar to the example pmml…
Raj
  • 35
  • 1
  • 9
0
votes
2 answers

How to use python requests to PUT a pmml model to openscoring

I'm trying to use python requests to PUT a .pmml model to a local openscoring server. This works (from directory containing DecisionTreeIris.pmml): curl -X PUT --data-binary @DecisionTreeIris.pmml -H "Content-type: text/xml"…
Dan
  • 651
  • 2
  • 8
  • 19
0
votes
2 answers

Unable to understand the cURL invocation

I am currently using jpmml openscoring REST API.. I have successfully installed Maven and built the uber-JAR file and I am also able to access http://localhost:8080/OpenScoring/rules.pmml I am confused with the instructions given at…
Raj
  • 35
  • 1
  • 9
0
votes
1 answer

Unable to use the PUT HTTP method

I am currently using jpmml openscoring REST API...https://github.com/jpmml/openscoring I have successfully installed Maven and built the uber-JAR file. I am also able to access localhost:8080/OpenScoring/rules.pmml using postman REST client in…
Raj
  • 35
  • 1
  • 9
0
votes
1 answer

Generating PMML in Knime module

I'm currently attempting to build module for the Knime analytics platform. This is going to be a module that generates and passes on a PMML model as its output. So far I've only been able to accomplish this by manually creating a PMMLDocument and…
andrei
  • 339
  • 3
  • 12
1 2 3
19
20