cba {arc} | R Documentation |
CBA Classifier
Description
Learns a CBA rule set from supplied dataframe.
Usage
cba(train, classAtt, rulelearning_options = NULL, pruning_options = NULL)
Arguments
train |
a data frame with data. |
classAtt |
the name of the class attribute. |
rulelearning_options |
custom options for the rule learning algorithm overriding the default values.
If not specified, the the topRules function is called and defaults specified there are used |
pruning_options |
custom options for the pruning algorithm overriding the default values. |
Value
Object of class CBARuleModel.
Examples
# Example using automatic threshold detection
cba(datasets::iris, "Species", rulelearning_options = list(target_rule_count = 50000))
# Example using manually set confidence and support thresholds
rm <- cba(datasets::iris, "Species", rulelearning_options = list(minsupp=0.01,
minconf=0.5, minlen=1, maxlen=5, maxtime=1000, target_rule_count=50000, trim=TRUE,
find_conf_supp_thresholds=FALSE))
inspect(rm@rules)