Class: FPGrowth

eclairjs/mllib/fpm.FPGrowth

new FPGrowth()

Constructs a default instance with default parameters {minSupport: `0.3`, numPartitions: same as the input data}.
Source:

Methods

run(data) → {module:eclairjs/mllib/fpm.FPGrowthModel}

Computes an FP-Growth model that contains frequent itemsets.
Parameters:
Name Type Description
data module:eclairjs/rdd.RDD input data set, each element contains a transaction
Source:
Returns:
an [[FPGrowthModel]]
Type
module:eclairjs/mllib/fpm.FPGrowthModel

setMinSupport(minSupport) → {module:eclairjs/mllib/fpm.FPGrowth}

Sets the minimal support level (default: `0.3`).
Parameters:
Name Type Description
minSupport float
Source:
Returns:
Type
module:eclairjs/mllib/fpm.FPGrowth

setNumPartitions(numPartitions) → {module:eclairjs/mllib/fpm.FPGrowth}

Sets the number of partitions used by parallel FP-growth (default: same as input data).
Parameters:
Name Type Description
numPartitions integer
Source:
Returns:
Type
module:eclairjs/mllib/fpm.FPGrowth