"FPGrowth/Assiciationrule Generator - filter useless rules"
werner
New Altair Community Member
Hi,
I am currently testing the FPGrowth algorithm using an example set which is structured like this
id attribute1 attribute2 attribute3
-----------------------------------------------------
4711 true false true
4712 false false false
...
Now, FPGrowth followed by AssociationRuleGenerator generates rules like
IF attribute1 = 0 THEN attribute2 => 0
These rules are not important (at least for me), because they just say that if attribute1 does not appear, attribute2 does not appear.
Is there any other way to filter such rules from the FrequentItemset? I tested the FPGrowth-Parameter "must contain" with the simple regex "attribute1 = 1", but it had no effect
Thanks for your help !
Werner
I am currently testing the FPGrowth algorithm using an example set which is structured like this
id attribute1 attribute2 attribute3
-----------------------------------------------------
4711 true false true
4712 false false false
...
Now, FPGrowth followed by AssociationRuleGenerator generates rules like
IF attribute1 = 0 THEN attribute2 => 0
These rules are not important (at least for me), because they just say that if attribute1 does not appear, attribute2 does not appear.
Is there any other way to filter such rules from the FrequentItemset? I tested the FPGrowth-Parameter "must contain" with the simple regex "attribute1 = 1", but it had no effect
Thanks for your help !
Werner
0
Answers
-
I think I solved it. I used the parameter "positive value" in FPGrowth and set it (for whatever reason!!) to "false".
Now it produces only rules which start with
IF attribute = 1 THEN ....
0 -
Hi,
but the generated rules do not rely on the correct data. Instead you are using the inverted data now: Each false is treated as being true. In normal transaction data, the false case is much more frequent than the true case. So rules based on the false case will have a greater support. That's why you find some rules and don't when switching back to "true". You might lower the support for finding rules, if there aren't any found.
Greetings,
Sebastian0