# make sure you have a Java SDK Version 1.4.0+ and not a headless installation.
system("java -version")
data("iris")
# build a classifier, inspect rules and make predictions
cl <- CMAR(Species ~ ., iris, support = .2, confidence = .8, verbose = TRUE)
cl
inspect(cl$rules)
predict(cl, head(iris))
cl <- CPAR(Species ~ ., iris)
cl
cl <- PRM(Species ~ ., iris)
cl
cl <- FOIL2(Species ~ ., iris)
cl
Run the code above in your browser using DataLab