public final class RulesGenerator extends Object
The items within each frequent set are inserted into a tree in reverse order, based on the index of the item. Once all item sets are inserted, the tree is mined from the root downwards. Antecedents and consequents are generated based on the current path of the tree. The path must meet the minimum support and the generated sets must meet the minimum confidence.
Constructor and Description |
---|
RulesGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addItemSet(ItemSet itemSet)
Add an item set to the model used by the rules generator.
|
void |
dispose()
Dispose of any memory consumed by the rules generator.
|
void |
generateRules(long minSupport,
long txnCount,
double minConfidence)
Generate the association rules given the minimum support and minimum confidence
constraints.
|
List<AssociationRule> |
getGeneratedRules()
Return the list of rules generated.
|
public void addItemSet(ItemSet itemSet)
itemSet
- a frequent item setpublic void generateRules(long minSupport, long txnCount, double minConfidence)
minSupport
- minimum number of transactions to meet supporttxnCount
- total number of transactions of the input data setminConfidence
- minimum confidence a rule must meet to be consideredpublic void dispose()
public List<AssociationRule> getGeneratedRules()
Copyright © 2016 Actian Corporation. All rights reserved.