We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcf7d73 commit a2d7cf7Copy full SHA for a2d7cf7
python/pyspark/mllib/fpm.py
@@ -55,6 +55,13 @@ class FPGrowth(object):
55
56
@classmethod
57
def train(cls, data, minSupport=0.3, numPartitions=-1):
58
+ """
59
+ Computes an FP-Growth model that contains frequent itemsets.
60
+ :param data: The input data set, each element contains a transaction.
61
+ :param minSupport: The minimal support level (default: `0.3`).
62
+ :param numPartitions: The number of partitions used by parallel FP-growth
63
+ (default: same as input data).
64
65
model = callMLlibFunc("trainFPGrowthModel", data, float(minSupport), int(numPartitions))
66
return FPGrowthModel(model)
67
0 commit comments