public class AssociationRules
extends java.lang.Object
implements scala.Serializable
Generates association rules from a 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>
:: Experimental ::
|
Constructor and Description |
---|
AssociationRules()
Constructs a default instance with default parameters {minConfidence = 0.8}.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
initializeLogIfNecessary(boolean isInterpreter) |
protected static boolean |
isTraceEnabled() |
protected static org.slf4j.Logger |
log() |
protected static void |
logDebug(scala.Function0<java.lang.String> msg) |
protected static void |
logDebug(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static void |
logError(scala.Function0<java.lang.String> msg) |
protected static void |
logError(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static void |
logInfo(scala.Function0<java.lang.String> msg) |
protected static void |
logInfo(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static java.lang.String |
logName() |
protected static void |
logTrace(scala.Function0<java.lang.String> msg) |
protected static void |
logTrace(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static void |
logWarning(scala.Function0<java.lang.String> msg) |
protected static void |
logWarning(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
<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()
protected static java.lang.String logName()
protected static org.slf4j.Logger log()
protected static void logInfo(scala.Function0<java.lang.String> msg)
protected static void logDebug(scala.Function0<java.lang.String> msg)
protected static void logTrace(scala.Function0<java.lang.String> msg)
protected static void logWarning(scala.Function0<java.lang.String> msg)
protected static void logError(scala.Function0<java.lang.String> msg)
protected static void logInfo(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logDebug(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logTrace(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logWarning(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logError(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static boolean isTraceEnabled()
protected static void initializeLogIfNecessary(boolean isInterpreter)
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
.