spmviz.io.write_patterns#
- spmviz.io.write_patterns(ps, path, sids=True)[source]#
Write a pattern set; the format follows the extension.
.txt/.spmf: SPMF output lines1 -1 2 -1 #SUP: 5 #SID: 0 3;.csv: table with the SPMF and arrow notations, supports, confidences and sids;.json: patterns as nested lists with supports, sids and the run parameters;.xlsx: the measure table (needs openpyxl).