powered by
Generate the PMML representation for a nnet object from package nnet.
# 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, …)
a nnet object.
a name to be given to the model in the PMML code.
the name of the application that generated the PMML code.
a descriptive text for the Header element of the PMML code.
the copyright notice for the model.
data transformations represented in PMML via pmmlTransformations.
value to be used as the 'missingValueReplacement' attribute for all MiningFields.
further arguments passed to or from other methods.
The pmml function supports both regression and classification neural network models. The model is represented in the PMML NeuralNetwork format.
pmml
R project CRAN package: nnet: Feed-forward Neural Networks and Multinomial Log-Linear Models https://CRAN.R-project.org/package=nnet
# NOT RUN { library(nnet) fit <- nnet(Species ~ ., data=iris, size=4) pmml(fit) rm(fit) # }
Run the code above in your browser using DataLab