PDA

View Full Version : How can I see the association Rules in Weka Explorer?



najmeh
05-26-2008, 04:18 AM
hi
when I choose the experiment.arff in the Weka Explorer and select associate tab (with apriori Algorithm)
I don't see any rules in Associator Output. I just see Scheme, Relation,Instances, Attributes .

HOW CAN I see rules??
Do it needed special DB Type?

thanks
Najmeh

Mark
05-26-2008, 05:05 AM
Hi,

You probably need to adjust the default values for support and confidence for Apriori. If there are no rules in the output, then this means there are no large item sets that meet the constraints of support and confidence.

Cheers,
Mark.

prashantj7090
06-26-2014, 09:49 AM
Hello Sir,
I implemented WEKA apriori in Java
my final result of weka is
Best rules found:


1. item_l=1 6 ==> item_b=1 6)
2. item_b=1 6 ==> item_l=1 6
3. item_n=1 6 ==> item_b=1 6


How can get this Out put in Java
ex:
Best Combination:
item_l item_b
item_b item_l
item_n item_b

Mark
06-28-2014, 04:11 AM
In the development version of Weka (3.7), Apriori implements AssociationRulesProducer. From this interface you can get an AssociationRules object that encapsulates all the rules. For each rule it is possible to get the items that make up the premise and consequence. Take a look at:

http://weka.sourceforge.net/doc.dev/weka/associations/AssociationRulesProducer.html

Cheers,
Mark.