pyspark.mllib.fpm.
PrefixSpan
A parallel PrefixSpan algorithm to mine frequent sequential patterns. The PrefixSpan algorithm is described in Jian Pei et al (2001) [1]
New in version 1.6.0.
Jian Pei et al., “PrefixSpan,: mining sequential patterns efficiently by prefix-projected pattern growth,” Proceedings 17th International Conference on Data Engineering, Heidelberg, Germany, 2001, pp. 215-224, doi: https://doi.org/10.1109/ICDE.2001.914830
Methods
train(data[, minSupport, maxPatternLength, …])
train
Finds the complete set of frequent sequential patterns in the input sequences of itemsets.
Methods Documentation
pyspark.RDD
The input data set, each element contains a sequence of itemsets.
The minimal support level of the sequential pattern, any pattern that appears more than (minSupport * size-of-the-dataset) times will be output. (default: 0.1)
The maximal length of the sequential pattern, any pattern that appears less than maxPatternLength will be output. (default: 10)
The maximum number of items (including delimiters used in the internal storage format) allowed in a projected database before local processing. If a projected database exceeds this size, another iteration of distributed prefix growth is run. (default: 32000000)