The goal of pmmlExtensionr is to convert specific R model types to PMML which are not yet supported by the standard pmml
package. To do so it leverages functionality of the pmmlTransformations
package and of the pmml
package itself.
The following model types are currently supported:
You can install pmmlExtensionr from GitHub with:
# install.packages("devtools")
devtools::install_github("SoftwareAG/pmmlExtensionr")
prcomp
pmml_prcomp()
extracts one principal component from a prcomp object together with the centering and scaling information and generates the PMML representation.
library(pmmlExtensionr)
iris <- iris[, -5]
piris <- prcomp(iris, center = TRUE, scale. = TRUE)
# Create a PMML representation for the third eigenvector
pmml_prcomp(piris, 3)
These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
Contact us at TECHcommunity if you have any questions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.