I am looking for an example implementation of a generalized sequential pattern (GSP) algorithm http://en.wikipedia.org/wiki/GSP_Algorithm
While the Wikipedia article contains psuedo code, it is a bit confusing, and I would like to see some correct code (ideally python or java). Does anyone know a good link?
I want to understand the algorithm first, and then potentially make it work in the MapReduce world, which, as can be seen from the wikipedia article, uses counters, which I think can be complicated.
I do this because I have an event schedule where the edges are time limited, the sequence will be that the node is connected to another node, where A β B occurs between the beginning and end time and B β C occurs X after the end of B in the first connection. A β B β C will be a sequence, a sequence cannot re-scan a node more than once.
David source share