spmviz.viz.plot_nbvfs#

spmviz.viz.plot_nbvfs(model, ax=None, labels='auto', label_style=None, start_items=None, context=True, min_confidence=None, color_by=None, size_by=None, node_size=(18, 260), edge_width=(0.3, 3.2), legend=True, rings=True, title=None, fontsize=7.5)[source]#

Draw a fitted NBVFS map.

Parameters:
modelNBVFS

A fitted model.

labels“auto”, int, list or None

"auto" labels everything up to 40 nodes, otherwise the 25 most supported; an int labels that many; a list labels the given patterns.

label_style{“added”, “full”}, optional

Label text: the added event (default of the WN map) or the whole sequence.

start_itemsitem or list, optional

Highlight the sequences starting with these events (the filter of the paper); with context=True the others stay as faint gray dots.

min_confidencefloat, optional

Hide edges with lower confidence.

color_by{“length”, “start”, “confidence”, “support”}, optional

Default: length for WN, starting event for the MDS maps.

size_by{“support”, “cum_confidence”, “confidence”}, optional

Default: cumulative confidence for WN, support for the MDS maps.

node_size, edge_width(min, max)
legend, ringsbool

Legend of the colors; guide circles of the WN circle layout.

Returns:
matplotlib.axes.Axes

Examples using spmviz.viz.plot_nbvfs#

Benchmark databases of sequential pattern mining

Benchmark databases of sequential pattern mining