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

Apply PMML predictor model in python

Knime has generated for me a PMML model. At this time I want to apply this model to a python process. What is the right way to do this? More in depth: I develop a django student attendance system. The application is already so mature that I have…
dani herrera
  • 48,760
  • 8
  • 117
  • 177
5
votes
1 answer

Calling the sklearn2pmml() function in Python 3.6 throws RuntimeError

I'm trying to save a Pipeline object as a PMML and Python throws a RuntimeError. My Python version is 3.6, sklearn2pmml version is 0.44.0 and JDK version is 1.8.0_201. All these match the package's prerequisites. Here's what I have done so far. (I'm…
dilip sundar
  • 91
  • 1
  • 7
5
votes
1 answer

How to replace the DataField values with exact column names in Spark-MLlib PMML file?

I use Spark 2.1.0. I've been trying to export Spark-MLlib Linear Regression model as PMML file. I've also successfully exported the PMML file. But in that file, I couldn't see any field name in it. All I can see is like this, Can anyone let me know…
5
votes
3 answers

how to fit and score a machine learning models in Java/JVM based application

Could you please guide me on how to create and execute a machine learning models/statistical models (regression, Decision tree, K means clustering, Naive bayes, scorecard/linear/logistic regression etc. and GBM, GLM ) in Java/JVM based application…
Gaurav Gupta
  • 104
  • 2
  • 7
5
votes
1 answer

unable to install 'XML' package dependency for 'pmml' on Ubuntu

I was trying to install the 'pmml' package in R using the install.packages('') option as well as from source. But keep getting errors both ways. Trying from R install.packages('pmml',dependencies=T) Cannot find xml2-config ERROR: configuration…
saltmangotree
  • 171
  • 4
  • 11
5
votes
3 answers

Machine learning models persistence options

Any suggestions/best practices for persisting and re-using trained machine learning models ? I'm developing models in Python or R. Then these models must be used in production workflow for scoring (where R is not available). For example there could…
hssay
  • 178
  • 1
  • 10
4
votes
1 answer

How to convert python xgboost model into the pmml?

How to convert python xgboost model into the pmml ? reg = XGBRegressor(learning_rate=0.1, n_estimators=30, max_depth=4, min_child_weight=4, gamma=0.1, subsample=0.9, colsample_bytree=0.8, objective='binary:logistic',…
Qiaoli Zhang
  • 41
  • 1
  • 3
4
votes
3 answers

Use PMML models in Python

I've found many topics related to this on the Internet but I could find no solutions. Suppose I want to download any PMML model from this examples list, and run them in Python (Python 3 preferably). Is there any way to do this? I'm looking for a…
Tendero
  • 1,136
  • 2
  • 19
  • 34
4
votes
1 answer

How to navigate XML with xpath in R

Can I have some xpath navigational assistance please, for use with an XML document in R? I have provided a very stripped down version of my actual data to illustrate ('my_xml'). In general, I am looking to import a pmml doc (exported by spss in XML)…
CallumH
  • 751
  • 1
  • 7
  • 22
4
votes
2 answers

Does there exist something that will programmatically add transformations to an existing PMML?

The statisticians I work with produce PMML in SAS and then deliver these to me. They have to hand code transformations into the PMML and this process is time consuming and fraught with errors. Does there exist something fulfills the following…
pettinato
  • 1,472
  • 2
  • 19
  • 39
4
votes
1 answer

PMML - Is it possible to create a TreeModel that returns multiple values (predicted fields)

I've just started learning a bit about PMML and I think that the TreeModel almost fits what I'm trying to achieve, but I’ve got a question I haven't been able to solve reading the documentation: Is it possible to make a TreeModel return multiple…
Axel
  • 1,674
  • 4
  • 26
  • 38
4
votes
1 answer

R SVM alpha coefficients

I am trying to recreate a SVM object in R from a PMML file, but am having trouble understanding how R stores the alpha coefficients. I am currently testing it on the iris data set and I generated a R SVM object with the command…
4
votes
5 answers

Import an SVM model in PMML to Java or Python?

Short question: is there a PMML interface for Java, Python or any other major programming language that supports SVM models? Background: I have trained an SVM model in R using the ksvm function from the kernlab package. Now I would like to use this…
roelandvanbeek
  • 659
  • 8
  • 20
3
votes
0 answers

Scikit-Learn like models for production?

I've currently fit a model using sktime (a scikit like library) which provides interfaces to dump and load pickled models. However if I fit in x86 (64 bit OS) and run inference on raspberry pi zero which is armv6 (32 bit OS) the predictions are…
Rakshith G B
  • 816
  • 2
  • 8
  • 24
3
votes
1 answer

How to make predictions with Syncfusion PMML from a Neural Network trained with sklearn MLPClassifier?

I trained a model in Python using sklearn.neural_network.MLPClassifier (0.20.3) and saved it in PMML format using sklearn2pmml (0.48.0). The saved PMML model works as expected when loaded in Java using org.jpmml:pmml-evaluator:1.4.14. I now want to…
Javide
  • 2,477
  • 5
  • 45
  • 61
1
2
3
19 20