Skip to main content

PrefixSpan source code in python

The prefixspan is a key algorithm for mining sequential patterns. I have implemented the algorithm in Python. The algorithm is based on the following paper:

Jian Pei, Jiawei Han, Senior Member, Behzad Mortazavi-asl, Jianyong Wang, Helen Pinto, Qiming Chen, Umeshwar Dayal. Mining Sequential Patterns by Pattern-Growth: The PrefixSpan Approach. IEEE Transactions on Knowledge and Data Engineering, 2004.

or their conference paper

You may download the source code at the following addresses:
Link1

Comments

dd said…
If some of you are looking for a Java version of prefixspan, check my website. It includes source code of PrefixSpan, SPAM and more...
Akash said…
please correct me if i'm wrong but i think your implementation doesn't work for sequences which are composed of itemsets instead of items.
socrates said…
yes, the implementation doesn't work for sequences which are composed of itemsets instead of items.
NocturnalGeek said…
Hi,
The link does not seem to be working
Did you take your implementation down?
I'm in a fix and would really appreciate it if you could send me the code.
Thanks