public class AssociationRules
extends Object
implements scala.Serializable
RDD[FreqItemset[Item}
. This method only generates
association rules which have a single item as the consequent.
Modifier and Type | Class and Description |
---|---|
static class |
AssociationRules.Rule<Item>
An association rule between sets of items.
|
Constructor and Description |
---|
AssociationRules()
Constructs a default instance with default parameters {minConfidence = 0.8}.
|
Modifier and Type | Method and Description |
---|---|
<Item> JavaRDD<AssociationRules.Rule<Item>> |
run(JavaRDD<FPGrowth.FreqItemset<Item>> freqItemsets)
Java-friendly version of
run . |
<Item> RDD<AssociationRules.Rule<Item>> |
run(RDD<FPGrowth.FreqItemset<Item>> freqItemsets,
scala.reflect.ClassTag<Item> evidence$1)
Computes the association rules with confidence above
minConfidence . |
AssociationRules |
setMinConfidence(double minConfidence)
Sets the minimal confidence (default:
0.8 ). |
public AssociationRules()
public AssociationRules setMinConfidence(double minConfidence)
0.8
).minConfidence
- (undocumented)public <Item> RDD<AssociationRules.Rule<Item>> run(RDD<FPGrowth.FreqItemset<Item>> freqItemsets, scala.reflect.ClassTag<Item> evidence$1)
minConfidence
.freqItemsets
- frequent itemset model obtained from FPGrowth
evidence$1
- (undocumented)Set[Rule[Item}
containing the association rules.
public <Item> JavaRDD<AssociationRules.Rule<Item>> run(JavaRDD<FPGrowth.FreqItemset<Item>> freqItemsets)
run
.