spmviz.networks.extension_network#
- spmviz.networks.extension_network(ps, weight='confidence', start_items=None, min_confidence=0.0, root=False)[source]#
Weighted extension network of frequent sequences (NBVFS-WN).
Nodes are the patterns, an edge joins every pattern to its one-item extensions; the edge weight is the extension confidence \(c(\varphi_j)=\sigma(\varphi_j)/\sigma(\varphi_i)\) (
weight="confidence", the definition of the paper) or the cumulative confidence of the child (weight="cumulative", as in the reference implementation).- Parameters:
- Returns:
networkx.DiGraphNode attributes:
label,support,rel_support,length,confidence,cum_confidence,start,added,index; edge attributes:confidence,cum_confidence,weight,added.