public class AssociationRules
extends Object
implements org.apache.spark.internal.Logging, 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 . |
<Item> RDD<AssociationRules.Rule<Item>> |
run(RDD<FPGrowth.FreqItemset<Item>> freqItemsets,
scala.collection.Map<Item,Object> itemSupport,
scala.reflect.ClassTag<Item> evidence$2)
Computes the association rules with confidence above
minConfidence . |
AssociationRules |
setMinConfidence(double minConfidence)
Sets the minimal confidence (default:
0.8 ). |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$init$, initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, initLock, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log__$eq, org$apache$spark$internal$Logging$$log_, uninitialize
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)RDD[Rule[Item}
containing the association rules.
public <Item> RDD<AssociationRules.Rule<Item>> run(RDD<FPGrowth.FreqItemset<Item>> freqItemsets, scala.collection.Map<Item,Object> itemSupport, scala.reflect.ClassTag<Item> evidence$2)
minConfidence
.freqItemsets
- frequent itemset model obtained from FPGrowth
itemSupport
- map containing an item and its supportevidence$2
- (undocumented)RDD[Rule[Item}
containing the association rules. The rules will be able to
compute also the lift metric.public <Item> JavaRDD<AssociationRules.Rule<Item>> run(JavaRDD<FPGrowth.FreqItemset<Item>> freqItemsets)
run
.freqItemsets
- (undocumented)