Class AprioriMiner<T>
java.lang.Object
org.tweetyproject.machinelearning.assoc.AbstractAssociationRuleMiner<T>
org.tweetyproject.machinelearning.assoc.AprioriMiner<T>
- Type Parameters:
T
- the type of items
- All Implemented Interfaces:
AssociationRuleMiner<T>
,FrequentPatternMiner<T>
Implements the classical Apriori algorithm for association rule mining, cf.
[R. Agrawal, R. Srikant. Fast algorithms for mining association rules in large databases. VLDB 1994.]
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionAprioriMiner
(double minsupport, double minconf) Creates a new Apriori miner with the given minimum support and minimum confidence values. -
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.mineRules
(Collection<Collection<T>> database, int conclusion_limit, int total_limit) Mines a set of association rules from the given database.Methods inherited from class org.tweetyproject.machinelearning.assoc.AbstractAssociationRuleMiner
mineRules, mineRules
-
Constructor Details
-
AprioriMiner
public AprioriMiner(double minsupport, double minconf) Creates a new Apriori miner with the given minimum support and minimum confidence values.- Parameters:
minsupport
- the minimum confidence for mined rules.minconf
- the minimum support for mined rules.
-
-
Method Details
-
mineRules
public Collection<AssociationRule<T>> mineRules(Collection<Collection<T>> database, int conclusion_limit, int total_limit) Description copied from interface:AssociationRuleMiner
Mines a set of association rules from the given database. Only those rules are mined where the conclusion and in total has the maximal given number of elements, respectively.- Parameters:
database
- some databaseconclusion_limit
- the maximal size of elements in the conclusion of the mined rules.total_limit
- the total number of elements that may appear in the mined rules.- Returns:
- a set of association rules.
-
mineFrequentSets
Description copied from interface:FrequentPatternMiner
Extracts all frequent sets of items from the database- 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.- Parameters:
database
- some databasemaxsize
- the maximal size of mined item sets- Returns:
- all frequent sets of items from database.
-