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
46
votes
6 answers

Options for deploying R models in production

There doesn't seem to be too many options for deploying predictive models in production which is surprising given the explosion in Big Data. I understand that the open-source PMML can be used to export models as an XML specification. This can then…
Cybernetic
  • 12,628
  • 16
  • 93
  • 132
43
votes
1 answer

Logistic Regression PMML won't Produce Probabilities

As part of a machine-learning deployment project, I built a proof-of-concept where I created two simple logistic regression models for a binary classification task using R's glm function and python's scikit-learn. Afterwards, I converted those…
FatihAkici
  • 4,679
  • 2
  • 31
  • 48
21
votes
3 answers

Export python scikit learn models into pmml

I want to export python scikit-learn models into PMML. What python package is best suited? I read about Augustus, but I was not able to find any example using scikit-learn models.
Selva
  • 976
  • 1
  • 10
  • 23
15
votes
7 answers

Detected Maven Version: 3.0.5 is not in the allowed range 3.2

I am working with Maven and I am getting errors with compiling and building my project. It is the jpmml-project to evaluate some pmml file. Now I got this error: Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:…
12
votes
1 answer

scikit-learn model persistence: pickle vs pmml vs ...?

I built an scikit-learn model and I want to reuse in a daily python cron job (NB: no other platforms are involved - no R, no Java &c). I pickled it (actually, I pickled my own object whose one field is a GradientBoostingClassifier), and I un-pickle…
sds
  • 58,617
  • 29
  • 161
  • 278
12
votes
5 answers

Can PMML models be read in R?

I have a PMML file which I am trying to import/read in R to do some analysis based on it. I couldn't find a suitable function to read the model, although I found a package that is related to PMML. Is there is a simple way to read this type of file…
Error404
  • 6,959
  • 16
  • 45
  • 58
10
votes
1 answer

Java Support for PMML

I am new in PMML: Predictive Model Markup Language (www.dmg.org) and I was wondering if there is some kind of Java support (Open Source / professional) for creating/parsing PMML files. Initially I only have in mind the possibility of…
Oscar
  • 101
  • 1
  • 4
9
votes
1 answer

Spark ml and PMML export

I know that it's possible to export models as PMML with Spark-MLlib, but what about Spark-ML? Is it possible to convert LinearRegressionModel from org.apache.spark.ml.regression to a LinearRegressionModel from org.apache.spark.mllib.regression to be…
philippe
  • 121
  • 1
  • 6
8
votes
3 answers

Apache Spark MLlib: How to import model from PMML

I have a PMML file which encodes a logistic regression model that was NOT exported from MLlib. How can I import the model from PMML using MLlib in Java for evaluation/prediction? (I know that MLlib can export to PMML, but I need to import from PMML)
Qululu
  • 1,040
  • 2
  • 12
  • 23
8
votes
0 answers

How to use a PMML model in C++?

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)…
JeromeLaurent
  • 327
  • 3
  • 10
8
votes
1 answer

How can I export a Time Series model in R?

Is there a standard (or available) way to export a Time Series 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…
yoganathan k
  • 213
  • 4
  • 16
7
votes
4 answers

Import sklearn2pmml generated .pmml back into ScikitLearn or Python

Apologies if this may have been answered somewhere but I've been looking for about an hour and can't find a good answer. I have a simple Logistic Regression model trained in Scikit-Learn that I'm exporting to a .pmml file. from sklearn2pmml…
muninn
  • 473
  • 1
  • 4
  • 12
7
votes
1 answer

Importing PMML models into Python (Scikit-learn)

There seem to be a few options for exporting PMML models out of scikit-learn, such as sklearn2pmml, but a lot less information going in the other direction. My case is an XGboost model previously built in R, and saved to PMML using r2pmml, that I…
F. R
  • 165
  • 3
  • 11
7
votes
4 answers

How to load a PMML model?

I'm following the instructions of PMML model export - spark.mllib to create a K-means model. val numClusters = 10 val numIterations = 10 val clusters = KMeans.train(data, numClusters, numIterations) // Save and load model: export to…
P. Barbadew
  • 103
  • 1
  • 10
6
votes
1 answer

Exporting a Scikit Learn Random Forest for use on Hadoop Platform

I've developed a spam classifier using pandas and scikit learn to the point where it's ready for integration into our hadoop-based system. To this end, I need to export my classifier to a more common format than pickling. The Predictive Model…
Axel Magnuson
  • 1,192
  • 1
  • 10
  • 26
1
2 3
19 20