We could set car to True (so that it produces rules that predict the class attribute) and
specify the index of the attribute that will be considered as class. minMetric sets the
threshold of confidence and numRules limits the number of rules that will be created. The
result will be a set of rules that predict the class, together with their confidence.