pmml (version 1.5.4)

pmml.nnet: Generate PMML for nnet objects

Description

Generate the PMML representation for a nnet object from package nnet.

Usage

# S3 method for nnet
pmml(model, model.name="NeuralNet_model",
      app.name="Rattle/PMML", 
      description="Neural Network PMML Model",
      copyright=NULL, transforms=NULL, unknownValue=NULL,
      …)

Arguments

model

a nnet object.

model.name

a name to be given to the model in the PMML code.

app.name

the name of the application that generated the PMML code.

description

a descriptive text for the Header element of the PMML code.

copyright

the copyright notice for the model.

transforms

data transformations represented in PMML via pmmlTransformations.

unknownValue

value to be used as the 'missingValueReplacement' attribute for all MiningFields.

further arguments passed to or from other methods.

Details

The pmml function supports both regression and classification neural network models. The model is represented in the PMML NeuralNetwork format.

References

R project CRAN package: nnet: Feed-forward Neural Networks and Multinomial Log-Linear Models https://CRAN.R-project.org/package=nnet

Examples

Run this code
# NOT RUN {
library(nnet)
fit <- nnet(Species ~ ., data=iris, size=4)
pmml(fit)

rm(fit)

# }

Run the code above in your browser using DataCamp Workspace