ca.pfv.spmf.algorithms.associationrules.TopKRules_and_TNR
Class AlgoTopKRules
- java.lang.Object
-
- ca.pfv.spmf.algorithms.associationrules.TopKRules_and_TNR.AlgoTopKRules
-
public class AlgoTopKRules extends java.lang.ObjectTopKRules is an algorithm for mining the TOP-K association rules from a transaction database using a pattern growth approach and several optimizations. This is the original implementation as proposed in the following paper:
Fournier-Viger, P., Wu, C.-W., Tseng, V. S. (2012). Mining Top-K Association Rules. Proceedings of the 25th Canadian Conf. on Artificial Intelligence (AI 2012), Springer, LNAI 7310, pp. 61-73.
-
-
Constructor Summary
Constructors Constructor and Description AlgoTopKRules()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidprintStats()Print statistics about the last algorithm execution.voidrunAlgorithm(int k, double minConfidence, Database database)Run the algorithm.voidwriteResultTofile(java.lang.String path)Write the rules found to an output file.
-
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm(int k, double minConfidence, Database database)Run the algorithm.- Parameters:
k- the value of k.minConfidence- the minimum confidence threshold.database- the database.
-
printStats
public void printStats()
Print statistics about the last algorithm execution.
-
writeResultTofile
public void writeResultTofile(java.lang.String path) throws java.io.IOExceptionWrite the rules found to an output file.- Parameters:
path- the path to the output file- Throws:
java.io.IOException- exception if an error while writing the file
-
-
DMelt 3.0 © DataMelt by jWork.ORG