ca.pfv.spmf.algorithms.frequentpatterns.eclat
Class AlgoEclat_Bitset
- java.lang.Object
-
- ca.pfv.spmf.algorithms.frequentpatterns.eclat.AlgoEclat_Bitset
-
- Direct Known Subclasses:
- AlgoDEclat_Bitset
public class AlgoEclat_Bitset extends java.lang.ObjectThis is a recent implementation of the ECLAT algorithm that uses bitsets to represent tidsets. Eclat was proposed by ZAKI (2000).
See this article for details about ECLAT:
Zaki, M. J. (2000). Scalable algorithms for association mining. Knowledge and Data Engineering, IEEE Transactions on, 12(3), 372-390.
This version saves the result to a file or keep it into memory if no output path is provided by the user to the runAlgorithm method().- See Also:
TriangularMatrix,TransactionDatabase,Itemset,Itemsets
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classAlgoEclat_Bitset.BitSetSupportAnonymous inner class to store a bitset and its cardinality (an itemset's tidset and its support).
-
Constructor Summary
Constructors Constructor and Description AlgoEclat_Bitset()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ItemsetsgetItemsets()Get the set of frequent itemsets.voidprintStats()Print statistics about the algorithm execution to System.out.ItemsetsrunAlgorithm(java.lang.String output, TransactionDatabase database, double minsupp, boolean useTriangularMatrixOptimization)Run the algorithm.
-
-
-
Method Detail
-
runAlgorithm
public Itemsets runAlgorithm(java.lang.String output, TransactionDatabase database, double minsupp, boolean useTriangularMatrixOptimization) throws java.io.IOException
Run the algorithm.- Parameters:
database- a transaction databaseoutput- an output file path for writing the result or if null the result is saved into memory and returnedminsupp- the minimum supportuseTriangularMatrixOptimization- if true the triangular matrix optimization will be applied.- Returns:
- the result
- Throws:
java.io.IOException- exception if error while writing the file.
-
printStats
public void printStats()
Print statistics about the algorithm execution to System.out.
-
getItemsets
public Itemsets getItemsets()
Get the set of frequent itemsets.- Returns:
- the frequent itemsets (Itemsets).
-
-
DMelt 3.0 © DataMelt by jWork.ORG