T
- the item type; must support hashing.public class AssociationRuleMiner<T> extends java.lang.Object
Constructor and Description |
---|
AssociationRuleMiner(float supportThreshold,
float confidenceThreshold)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<AssociationRule<T>> |
mineAssociationRules(java.util.Set<java.util.Set<T>> baskets)
Mines frequent item sets from the given shopping baskets.
|
public AssociationRuleMiner(float supportThreshold, float confidenceThreshold)
supportThreshold
- the support threshold [0..1], i.e. the fraction of the baskets
in which a frequent item set must be present in order to be
considered.confidenceThreshold
- the minimal confidence of the mined rules [0..1].public java.util.Set<AssociationRule<T>> mineAssociationRules(java.util.Set<java.util.Set<T>> baskets)