Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

SoftwareAG/pmmlExtensionr

Repository files navigation

!!! Archived -- this repository is archived and currently not actively maintained!

pmmlExtensionr

Build Status Build status

Overview

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:

  • prcomp

Installation

You can install pmmlExtensionr from GitHub with:

# install.packages("devtools")
devtools::install_github("SoftwareAG/pmmlExtensionr")

Usage

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.

About

Generate PMML for R models which are not supported by the standard pmml package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages