Package: pmml 2.6.1

pmml: Generate PMML for Various Models

The Predictive Model Markup Language (PMML) is an XML-based language which provides a way for applications to define machine learning, statistical and data mining models and to share models between PMML compliant applications. More information about the PMML industry standard and the Data Mining Group can be found at <https://dmg.org/>. The generated PMML can be imported into any PMML consuming application, such as Zementis Predictive Analytics products.

Authors:Michael Hahsler [aut, cre], Bruno Rodrigues [aut], Dmitriy Bolotov [aut], Tridivesh Jena [aut], Graham Williams [aut], Wen-Ching Lin [aut], Hemant Ishwaran [aut], Udaya B. Kogalur [aut], Rajarshi Guha [aut], Software AG [cph]

pmml_2.6.1.tar.gz
pmml_2.6.1.zip(r-4.7-any)pmml_2.6.1.zip(r-4.6-any)pmml_2.6.1.zip(r-4.5-any)
pmml_2.6.1.tgz(r-4.6-any)pmml_2.6.1.tgz(r-4.5-any)
pmml_2.6.1.tar.gz(r-4.7-any)pmml_2.6.1.tar.gz(r-4.6-any)
pmml_2.6.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
pmml/json (API)

# Install 'pmml' in R:
install.packages('pmml', repos = c('https://mhahsler.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mhahsler/r-pmml/issues

Pkgdown/docs site:https://michael.hahsler.net

Datasets:
  • audit - Audit: artificially constructed dataset
  • houseVotes84 - Modified 1984 United States Congressional Voting Records Database

On CRAN:

Conda:

interoperabilitymachine-learning-modelspmml

6.78 score 1 stars 289 scripts 2.3k downloads 40 exports 9 dependencies

Last updated from:0997fe5142. Checks:8 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK169
source / vignettesOK342
linux-releaseOK292
macos-releaseOK111
macos-oldrelOK147
windows-develOK494
windows-releaseOK1033
windows-oldrelOK149
wasm-releaseFAIL681

Exports:add_attributesadd_data_field_attributesadd_data_field_childrenadd_mining_field_attributesadd_output_fieldfile_to_xml_nodefunction_to_pmmlmake_intervalsmake_output_nodesmake_valuespmmlpmml.adapmml.ARIMApmml.coxphpmml.cv.glmnetpmml.gbmpmml.glmpmml.hclustpmml.iForestpmml.itemsetspmml.kmeanspmml.ksvmpmml.lmpmml.multinompmml.naiveBayespmml.nnetpmml.randomForestpmml.rpartpmml.rulespmml.svmpmml.xgb.Boosterrename_wrap_varsave_pmmlxform_discretizexform_functionxform_mapxform_min_maxxform_norm_discretexform_wrapxform_z_score

Dependencies:cligluelifecyclemagrittrrlangstringistringrvctrsXML

Introduction to xform_function
Introduction | Single numeric input | Single categorical input | Multiple input fields | Using a previously derived feature | Factor output | PMML functions supported by xform_function | PMML functions not supported by xform_function | PMML function not supported by xform_function - another example | PMML for arbitrary functions | More notes on functions | More examples of functions | References

Last update: 2026-03-26
Started: 2019-05-29

Supported Packages and Additional Functions
Introduction | Supported packages | Data transformations | Additional functions | References

Last update: 2026-03-26
Started: 2019-05-29

Readme and manuals

Help Manual

Help pageTopics
Add attribute values to an existing element in a given PMML file.add_attributes
Add attribute values to an existing DataField element in a given PMML fileadd_data_field_attributes
Add 'Interval' and 'Value' child elements to a given DataField element in a given PMML file.add_data_field_children
Add attribute values to an existing MiningField element in a given PMML file.add_mining_field_attributes
Add Output nodes to a PMML object.add_output_field
Audit: artificially constructed datasetaudit
Read in a file and parse it into an object of type XMLNode.file_to_xml_node
Convert an R expression to PMML.function_to_pmml
Modified 1984 United States Congressional Voting Records DatabasehouseVotes84
Create Interval elements, most likely to add to a DataDictionary element.make_intervals
Add Output nodes to a PMML object.make_output_nodes
Create Values element, most likely to add to a DataDictionary element.make_values
Generate the PMML representation for R objects.pmml
Generate the PMML representation for an ada object from the package 'ada'.pmml.ada
Generate PMML for an ARIMA object the *forecast* package.pmml.ARIMA
Generate the PMML representation for a coxph object from the package 'survival'.pmml.coxph
Generate the PMML representation for a cv.glmnet object from the package 'glmnet'.pmml.cv.glmnet
Generate the PMML representation for a gbm object from the package 'gbm'.pmml.gbm
Generate the PMML representation for a glm object from the package 'stats'.pmml.glm
Generate the PMML representation for a hclust object from the package 'amap'.pmml.hclust
Generate PMML for an iForest object from the *isofor* package.pmml.iForest
Generate the PMML representation for a kmeans object from the package 'stats'.pmml.kmeans
Generate the PMML representation for a ksvm object from the package 'kernlab'.pmml.ksvm
Generate the PMML representation for an lm object from the package 'stats'.pmml.lm
Generate the PMML representation for a multinom object from package 'nnet'.pmml.multinom
Generate the PMML representation for a naiveBayes object from the package 'e1071'.pmml.naiveBayes
Generate the PMML representation for a nnet object from package 'nnet'.pmml.nnet
Generate the PMML representation for a randomForest object from the package 'randomForest'.pmml.randomForest
Generate the PMML representation for an rpart object from the package 'rpart'.pmml.rpart
Generate the PMML representation for a rules or an itemset object from package 'arules'.pmml.itemsets pmml.rules
Generate the PMML representation of an svm object from the 'e1071' package.pmml.svm
Generate PMML for a xgb.Booster object from the package 'xgboost'.pmml.xgb.Booster
Rename a variable in the xform_wrap transform object.rename_wrap_var
Save a pmml object as an external PMML file.save_pmml
Discretize a continuous variable as indicated by interval mappings in accordance with the PMML element *Discretize*.xform_discretize
Add a function transformation to a xform_wrap object.xform_function
Implement a map between discrete values in accordance with the PMML element *MapValues*.xform_map
Normalize continuous values in accordance with the PMML element *NormContinuous*.xform_min_max
Normalize discrete values in accordance with the PMML element *NormDiscrete*.xform_norm_discrete
Wrap data in a data transformations object.xform_wrap
Perform a z-score normalization on continuous values in accordance with the PMML element *NormContinuous*.xform_z_score