I want to get the premise and consequence for each line of generated rules after the running the apriori algorithm in Weka 3.8.6.
`apriori.setNumRules(NUMBER_OF_RULES);
apriori.setMinMetric(MINIMUM_CONFIDENCE);
apriori.setLowerBoundMinSupport(MINIMUM_SUPPORT);
apriori.setCar(true);
apriori.buildAssociations(instances);`
But a exception: java.lang.ClassCastException: class weka.associations.ItemSet cannot be cast to class weka.associations.AprioriItemSet (weka.associations.ItemSet and weka.associations.AprioriItemSet are in unnamed module of loader.
Why when I simple change setCar(false) to setCar(true) I can’t call buildAssociations(instances)? When setCar(false) I can call the method with no problems. How can I do this? How to call the method buildAssociations whit setCar(true).
I want to call the apriori.buildAssociations(instances) whit no errors