spmviz.measures.content_similarity#

spmviz.measures.content_similarity(ps, measure='lcs')[source]#

Similarity of the patterns themselves (their item strings).

"lcs": length of the longest common subsequence divided by the longer length; "edit": one minus the normalized Levenshtein distance; "items": Jaccard similarity of the item sets.