chuanconggao/PrefixSpan-py

Finding frequent patterns in multiple lists

Opened this issue · 0 comments

Can PrefixSpan find sequential patterns in multiple lists, instead of just one list?
For example, I'd want to find the most frequent patterns that occur in both of these lists:

db = [
    [0, 1, 2, 3, 4],
    [1, 1, 1, 3, 4],
    [2, 1, 2, 2, 0],
    [1, 1, 1, 2, 2],
]
db2 = [
    [0, 2, 2, 3, 5],
    [1, 1, 1, 3, 5],
    [2, 1, 2, 2, 0],
    [1, 1, 1, 2, 2],
]