Association rule for A -> B, but not the other way around

Hi,
I don’t think there is a node that can limit the itemsets before they are created, but you could filter them afterwards. Please have a look at the attached workflow for that. It first filters out all rules with an invalid consequent, then “flattens” the rules by ungrouping the antecedent and filters those as well. In the end it recreates the original collection cell for the antecedent and compares its size to the original one. If it has not changed, it is kept, otherwise the rule is discarded because some items were removed.
Kind regards,
Alexander

Assoc Rules.knwf (29.0 KB)

2 Likes