public class FPGrowthModel<Item>
extends Object
implements scala.Serializable
FPGrowth
, which holds frequent itemsets.
param: freqItemsets frequent itemset, which is an RDD of FreqItemset
Constructor and Description |
---|
FPGrowthModel(RDD<FPGrowth.FreqItemset<Item>> freqItemsets,
scala.reflect.ClassTag<Item> evidence$1) |
Modifier and Type | Method and Description |
---|---|
RDD<FPGrowth.FreqItemset<Item>> |
freqItemsets() |
RDD<AssociationRules.Rule<Item>> |
generateAssociationRules(double confidence)
Generates association rules for the
Item s in freqItemsets . |
public FPGrowthModel(RDD<FPGrowth.FreqItemset<Item>> freqItemsets, scala.reflect.ClassTag<Item> evidence$1)
public RDD<FPGrowth.FreqItemset<Item>> freqItemsets()
public RDD<AssociationRules.Rule<Item>> generateAssociationRules(double confidence)
Item
s in freqItemsets
.confidence
- minimal confidence of the rules produced