ca.pfv.spmf.algorithms.frequentpatterns.zart
Class AlgoZart
- java.lang.Object
-
- ca.pfv.spmf.algorithms.frequentpatterns.zart.AlgoZart
-
public class AlgoZart extends java.lang.ObjectThis is an implementation of Zart, an algorithm for mining frequent closed itemsets and their associated generators at the same time. The Zart algorithm is described in the article :
"Zart : a Multifunctional Itemset Mining Algorithm" de Laszlo Szathmary et al. ZART finds all the frequent closed itemsets in a binary context, their associated minimal generator(s) and their support.
This algorithm could be optimized in various way as described in the article by Szathmary, for example, by using the Trie data structure and by removing unfrequent items, but this was not done here.- See Also:
TransactionDatabase,Itemset
-
-
Constructor Summary
Constructors Constructor and Description AlgoZart()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TFTableFrequentgetTableFrequent()Get the table of frequent itemsetsvoidprintStatistics()Print statistics about the latest execution of the algorithm.TZTableClosedrunAlgorithm(TransactionDatabase database, double minsupp)Run the algorithmvoidsaveResultsToFile(java.lang.String output)Save the results found to a file
-
-
-
Method Detail
-
runAlgorithm
public TZTableClosed runAlgorithm(TransactionDatabase database, double minsupp)
Run the algorithm- Parameters:
database- a transaction databaseminsupp- the minimum support threshold- Returns:
- a set of closed itemsets and their associated generator(s)
-
getTableFrequent
public TFTableFrequent getTableFrequent()
Get the table of frequent itemsets- Returns:
- the table of frequent itemsets
-
printStatistics
public void printStatistics()
Print statistics about the latest execution of the algorithm.
-
saveResultsToFile
public void saveResultsToFile(java.lang.String output) throws java.io.IOExceptionSave the results found to a file- Parameters:
output- the path of an output file- Throws:
java.io.IOException- exception if error while writing to the file
-
-
DMelt 3.0 © DataMelt by jWork.ORG