hatvis.patterns.arhp_weights#

hatvis.patterns.arhp_weights(itemsets, min_size=2)[source]#

Hyperedge weights of association-rule hypergraph partitioning (Han et al. 1997).

The weight of a frequent itemset \(X\) is the mean confidence of the rules \(X\setminus\{i\}\Rightarrow\{i\}\), \(i\in X\); clustering the resulting weighted itemset hypergraph groups items that predict each other.

Examples using hatvis.patterns.arhp_weights#

Association rules as a directed hypergraph

Association rules as a directed hypergraph