chuanconggao / PrefixSpan-py

The shortest yet efficient Python implementation of the sequential pattern mining algorithm PrefixSpan, closed sequential pattern mining algorithm BIDE, and generator sequential pattern mining algorithm FEAT.
https://git.io/prefixspan
MIT License
414 stars 92 forks source link

Specify occurrence of each sequence in input #17

Closed nltran closed 4 years ago

nltran commented 5 years ago

Hello,

Could the library support occurrence information of sequences in the input? I have data in this form, where the last element of a sequence indicates the number of times this sequence has occurred in the dataset.

c d e 7 b b b d e 89 c c c a 123 b b c c 789

chuanconggao commented 4 years ago

Seems duplicate of #21. Please double check that one.