# NOT RUN {
# Build iForest model using iris dataset. Create an isolation
# forest with 10 trees. Sample 30 data points at a time from
# the iris dataset to fit the trees.
library(isofor)
data(iris)
mod <- iForest(iris, nt = 10, phi = 30)
# Convert to PMML:
mod_pmml <- pmml(mod)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab