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.collection.Map<T,Object> itemSupport,
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.collection.Map<T,Object> itemSupport, 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 rulesitemSupport
- map containing an item and its supportevidence$2
- (undocumented)