Class FpGrowthMiner<T>
java.lang.Object
org.tweetyproject.machinelearning.assoc.FpGrowthMiner<T>
- Type Parameters:
T
- the type of items
- All Implemented Interfaces:
FrequentPatternMiner<T>
Implements the FP-Growth Algorithm for frequent pattern mining, cf.
[Jiawei Han, Jian Pei, Yiwen Yin. Mining frequent patterns without candidate generation.
ACM SIGMOD Record, Volume 29, Issue 2, June 2000 pp 1–12]
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionFpGrowthMiner
(double minsupport) Creates a new FPGrowth miner with the given minimum support value. -
Method Summary
Modifier and TypeMethodDescriptionmineFrequentSets
(Collection<Collection<T>> database) Extracts all frequent sets of items from the databasemineFrequentSets
(Collection<Collection<T>> database, int maxsize) Extracts all frequent sets of items from the database.
-
Constructor Details
-
FpGrowthMiner
public FpGrowthMiner(double minsupport) Creates a new FPGrowth miner with the given minimum support value.- Parameters:
minsupport
- the minimum confidence for mined sets.
-
-
Method Details
-
mineFrequentSets
Description copied from interface:FrequentPatternMiner
Extracts all frequent sets of items from the database- Specified by:
mineFrequentSets
in interfaceFrequentPatternMiner<T>
- Parameters:
database
- some database- Returns:
- all frequent sets of items from database
minsupport
.
-
mineFrequentSets
Description copied from interface:FrequentPatternMiner
Extracts all frequent sets of items from the database.- Specified by:
mineFrequentSets
in interfaceFrequentPatternMiner<T>
- Parameters:
database
- some databasemaxsize
- the maximal size of mined item sets- Returns:
- all frequent sets of items from database.
-