public class AssociationRules
extends Object
Constructor and Description |
---|
AssociationRules() |
Modifier and Type | Method and Description |
---|---|
static <T> Dataset<Row> |
getAssociationRulesFromFP(Dataset<?> dataset,
String itemsCol,
String freqCol,
double minConfidence,
scala.reflect.ClassTag<T> evidence$2)
Computes the association rules with confidence above minConfidence.
|
public static <T> Dataset<Row> getAssociationRulesFromFP(Dataset<?> dataset, String itemsCol, String freqCol, double minConfidence, scala.reflect.ClassTag<T> evidence$2)
dataset
- DataFrame("items"[Array], "freq"[Long]) containing frequent itemsets obtained
from algorithms like FPGrowth
.itemsCol
- column name for frequent itemsetsfreqCol
- column name for appearance count of the frequent itemsetsminConfidence
- minimum confidence for generating the association rulesevidence$2
- (undocumented)