Get the Association Rules from a CBA classifier

Share:

Description

Returns the association rules used in the model from a CBA classifier object.

Usage

1
rules(classifier)

Arguments

classifier

An object of class CBA.

...

Additional arguments not used

Details

Returns an arules rule set (object of class rules) of all of the association rules used in the classifier.

Author(s)

Ian Johnson

Examples

1
2
3
4
5
6
7
data(iris)
irisDisc <- as.data.frame(lapply(iris[1:4], function(x) discretize(x, categories=9)))
irisDisc$Species <- iris$Species

classifier <- CBA(irisDisc, "Species", supp = 0.05, conf=0.9)
rules <- rules(classifier)
inspect(rules)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.