I am using Apriori algorithem in Weka for association rule mining. I know that support for each rule is equal to (occurnce / total-rules ). Weka gave me the number of occurnce. But how do I know the number of rules?
How do I know the "support" of each association rules in Weka?
2.7k views Asked by MFR At
1
Seems to be some confusion in the definitions.
Consider an association rule
X --> Y
andT
a set ofn
transactions.The support for
X --> Y
is defined to be the fraction of transactionT
that satisfy the union of itemsX and Y
.(X U Y).count/n
APRIORI algorithm, in Weka, returns the result as a collection of rules of this kind:
antecedent <support> -> Consequence <confidence>
, so you already have the value of support.However if you need the number of rules, for something else, there is one parameters of the algorithm and also in the output the rules are numbered.