# NOT RUN {
# Any anomalous data points in the Iris dataset? Hopefully none of the
# anomaly scores are high!
library(isofor)
# create an isolation forest with 10 trees. Sample 30 data points at a time
# from the iris dataset to fit the trees
mod <- iForest(iris,nt=10,phi=30)
#convert to PMML
pm <- pmml(mod)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab