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
3
votes
0 answers

Scikitlearn - Tensorflow pipeline - How to save pipeline in hd5 / pmml

I have created a pipeline model mixing scikit learn preprocessing and keras. scaler = StandardScaler() clf = KerasRegressor(build_fn=build_model,epochs=1000,validation_split=0.2, batch_size=100, callbacks=[print_dot,plot_losses],…
Leothorn
  • 1,345
  • 1
  • 23
  • 45
3
votes
2 answers

Export spark feature transformation pipeline to a file

PMML, Mleap, PFA currently only support row based transformations. None of them support frame based transformations like aggregates or groupby or join. What is the recommended way to export a spark pipeline consisting of these operations.
Gowrav
  • 627
  • 7
  • 22
3
votes
0 answers

How to export multiclass classification neural network built in Keras to PMML

I built a neural network for a multiclass classification in Keras and need to export it to a PMML file. I'm aware of the keras2pmml package, but unfortunately this only support binary classification problems. My code: modelnew2 = Sequential() #…
3
votes
2 answers

pmml model created from xgboost in R leads to different result than original model in R

I have a ranking task, where my training data looks like this: session_id item_id item_features target --------------------------------------------- session1 item1 ... 1 session1 item2 ... …
kb-kou
  • 31
  • 2
3
votes
2 answers

Load model in Scala/Java from pmml created in R

I want to save a random forest regression model in PMML from R, and load it in Spark (Scala or Java). Unfortunately I have issues in the second step. A minimal example of saving a PMML of a random forest regresion model in R is provided below. When…
queise
  • 2,286
  • 21
  • 28
3
votes
4 answers

How to use the PMML model in Java?

i have build a python file based on randomforestclassifier and made a PMML model, now we need to use this PMML in Java to classify the data into 2 catagories..but this is new to me and i don't know how to handle the java part..
mathilde
  • 49
  • 1
  • 1
  • 2
3
votes
1 answer

JMML Apache Spark org.dmg.pmml.MiningField.setUsageType function not found error

I am getting the following error while trying to convert a PipeLine Model in spark to Pmml using JPmml. java.lang.NoSuchMethodError: org.dmg.pmml.MiningField.setUsageType(Lorg/dmg/pmml/MiningField$UsageType;)Lorg/dmg/pmml/MiningField; I have added…
3
votes
1 answer

Use/productionize trained machine learning model in client-side javascript?

So this is a slightly insane idea that I've been kicking around. I'm thinking of building a classifier for (a specialized subset of) some web content, and then supplying it to users in the form of a chrome extension. (So: user goes to web page,…
3
votes
0 answers

Convert a PMML describe model in C/C++

How to convert an already trained model (e.g. RFRegressor or a GBM) stored in PMML format in C/C++ code ?
user3313834
  • 7,327
  • 12
  • 56
  • 99
3
votes
1 answer

Scoring regression model using PMML with Augustus in Python

I have a PMML file (below) generated from an R linear model from my colleague that is to be used to predict the cost of an item based on 5 features. I am trying to consume this model using Augustus in Python and make these predictions. I have been…
3
votes
1 answer

How to generate older pmml version in R

The pmml package in R by default generates pmml of the most recent version (at the moment 4.2). Is it possible (and if so, how?) to generate pmml of older versions (e.g. 4.1), because the pmml consumer doesn't support 4.2 yet?
3
votes
2 answers

Caret Model random forest into PMML error

I would like to export a Caret random forest model using the pmml library so I can use it for predictions in Java. Here is a reproduction of the error I am getting. data(iris) require(caret) require(pmml) rfGrid2 <- expand.grid(.mtry =…
Dr VComas
  • 735
  • 7
  • 22
3
votes
1 answer

How can I export a gbm model in R?

Is there a standard (or available) way to export a gbm model in R? PMML would work, but when I I try to use the pmml library, perhaps incorrectly, I get an error: For example, my code looks similar to this: library("gbm") library("pmml") …
Josh Marcus
  • 1,749
  • 18
  • 30
3
votes
1 answer

Converting PMML representing Multinomial Logistic Regression back into R coefficients

My most recent assignment has been to parse PMML back into R models. (I've searched extensively, and there is no library that does this conversion for you.) I'm trying to convert PMML containing a Multinomial Logistic Regression back into an R…
hlin117
  • 20,764
  • 31
  • 72
  • 93
3
votes
2 answers

SAS to predictive model markup language

I am currently working on implementing a model developed in SAS. Is there a way to directly convert SAS code to PMML ?
Valan
  • 69
  • 1
  • 6
1 2
3
19 20