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
1 answer

how to refer outputfield from derivedfield in pmml

I have derivedfields in my pmml I want to use them as outputfields. So I want to refer outputfield from derivedfield. But sas application throw an error. Error is : ERROR: Variable Z_DD_OCCUPATION_ID is not defined. How can I set outputfield from…
neverwinter
  • 810
  • 2
  • 15
  • 42
0
votes
1 answer

fit in distributed, predict in a stand alone

How can one train (fit) a model in a distributed big data platform (e.g Apache Spark) yet use that model in a stand alone machine (e.g. JVM) with as little dependency as possible? I heard of PMML yet I am not sure if it is enough. Also Spark 2.0…
Hanan Shteingart
  • 8,480
  • 10
  • 53
  • 66
0
votes
1 answer

else clause in pmml derivedfield

In derivedfield in pmml, for making local transformation I used the code below mmale
neverwinter
  • 810
  • 2
  • 15
  • 42
0
votes
0 answers

how to set categorical outputfield in pmml

I can set a derivedField like that
neverwinter
  • 810
  • 2
  • 15
  • 42
0
votes
0 answers

PMML parsing with java + swing

I want to parse a pmml document with java but the problem is pmml file needs variables and i couldnt find any solution how to handle it and Can i create a desktop application with jframe that is chosing pmml document with file chooser and using this…
0
votes
1 answer

Convert party object to pmml

I am currently trying to convert a decision tree created using the R package partykit (party object) to a pmml-format. Are there packages that allow for this conversion? I am aware of the existance of the pmml-package, but this only supports rpart…
Niels
  • 1
  • 1
0
votes
1 answer

Is it possible to add transformation code to pmml?

I run a linear regression code and generated a pmml. In my pmml code there are data types and regression table info. I have a pmml code like that
neverwinter
  • 810
  • 2
  • 15
  • 42
0
votes
2 answers

How to make predictions using a pmml file in R

I created an xml file using pmml function from pmml library in R. adamodel_iOS=ada(label~.,data=train_iOS, iter=ntrees, verbose=TRUE, loss="ada", bag.frac=0.7, nu=0.1, control=defctrl, type="real") Ptrain_iOS =…
pasternak
  • 361
  • 4
  • 14
0
votes
1 answer

Import JPMML to my Android Studio project

How to add jpmml (https://github.com/jpmml/jpmml) to my Android Studio project? I tried to use pom.xml file but it didn't help. Please give me some advice.
matejko219
  • 1,601
  • 10
  • 14
0
votes
1 answer

Limit of tree size when using jpmml

Is there a size limit when using tree models with jpmml (version 1.1.16)? When I have an extra large tree (PMML size is hundreds of MB, several millions of leaves) for some inputs I get this exception: java.lang.NullPointerException at…
scf
  • 396
  • 2
  • 19
0
votes
0 answers

MATLAB SVM classifier to Java or PMML

I have a trained SVM classifier in MATLAB (CompactClassificationSVM), with all its settings and the support vectors etc. However, I need to perform predictions on an Android tablet, so I'd prefer to reproduce the model exactly in Java. I do not have…
0
votes
1 answer

Error while converting R models to pmml

When I try to get the PMML code out of my models in R I get the following error: Error in datypelist[[namelist[ndf2][[1]]]] : subscript out of bounds Here is the code which gives error: dim(train) [1] 6963 31 model <- glm(trainLabels…
SoakingHummer
  • 562
  • 1
  • 7
  • 25
0
votes
1 answer

How can a PMML reader interpret the predict value's type?

Hi I have a PMML generated for a logistic regression model using R as follows. Only the first part of the pmml is shown here.
DesirePRG
  • 6,122
  • 15
  • 69
  • 114
0
votes
0 answers

What is the best way to define spline functions in PMML?

Has anyone defined a spline function (i.e. defineFuction) in PMML? There is quite a few parameters that need to be defined, with a fairly lengthy math. For example, for a predictor with a 3-knot restrictive cubic spline, I have seven parameters…
0
votes
1 answer

sklearn2pmml and jpmml-sklearn Usage Errors

I recently came across sklearn2pmml and jpmml-sklearn when looking for a way to convert scikit-learn models to PMML. However, I've been hitting errors when trying to use the basic usage examples that I'm unable to figure out. When attempting to…
Noit
  • 23
  • 4