ca.pfv.spmf.algorithms.associationrules.agrawal94_association_rules
Class AlgoAgrawalFaster94
- java.lang.Object
-
- ca.pfv.spmf.algorithms.associationrules.agrawal94_association_rules.AlgoAgrawalFaster94
-
- Direct Known Subclasses:
- AlgoClosedRules
public class AlgoAgrawalFaster94 extends java.lang.ObjectThis is an implementation of the "faster algorithm" for generating association rules, described in Agrawal & al. 1994, IBM Research Report RJ9839, June 1994.
This implementation saves the result to a file or can alternatively keep it into memory if no output path is provided by the user when the runAlgorithm() method is called.- See Also:
AssocRule,AssocRules
-
-
Constructor Summary
Constructors Constructor and Description AlgoAgrawalFaster94()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidprintStats()Print statistics about the algorithm execution to System.out.AssocRulesrunAlgorithm(Itemsets patterns, java.lang.String output, int databaseSize, double minconf)Run the algorithmAssocRulesrunAlgorithm(Itemsets patterns, java.lang.String output, int databaseSize, double minconf, double minlift)Run the algorithm
-
-
-
Method Detail
-
runAlgorithm
public AssocRules runAlgorithm(Itemsets patterns, java.lang.String output, int databaseSize, double minconf) throws java.io.IOException
Run the algorithm- Parameters:
patterns- a set of frequent itemsetsoutput- an output file path for writing the result or null if the user want this method to return the resultdatabaseSize- the number of transactions in the databaseminconf- the minconf threshold- Returns:
- the set of association rules if the user wished to save them into memory
- Throws:
java.io.IOException- exception if error writing to the output file
-
runAlgorithm
public AssocRules runAlgorithm(Itemsets patterns, java.lang.String output, int databaseSize, double minconf, double minlift) throws java.io.IOException
Run the algorithm- Parameters:
patterns- a set of frequent itemsetsoutput- an output file path for writing the result or null if the user want this method to return the resultdatabaseSize- the number of transactions in the databaseminconf- the minconf thresholdminlift- the minlift threshold- Returns:
- the set of association rules if the user wished to save them into memory
- Throws:
java.io.IOException- exception if error writing to the output file
-
printStats
public void printStats()
Print statistics about the algorithm execution to System.out.
-
-
DMelt 3.0 © DataMelt by jWork.ORG