I'm trying to use the arules
package to read a PMML random forest model object and predict using it. Below is what I have using the iris dataset as an example. I'm getting an error when I try to read the PMML that says File does not contain an AssociationModel.
Is it possible to read in a model object using the arules or some other package?
library(arules)
library(randomForest)
data(iris)
rf <- randomForest(Species~., data=iris, ntree=10)
write.PMML(rf, 'irisrf.pmml')
irisrf <- read.PMML('irisrf.pmml')
#This is where I get the error