Class AbstractAssociationRuleMiner<T>
java.lang.Object
org.tweetyproject.machinelearning.assoc.AbstractAssociationRuleMiner<T>
- Type Parameters:
T
- the type of items contained in the itemsets used for mining association rules.
- All Implemented Interfaces:
AssociationRuleMiner<T>
,FrequentPatternMiner<T>
- Direct Known Subclasses:
AprioriMiner
public abstract class AbstractAssociationRuleMiner<T>
extends Object
implements AssociationRuleMiner<T>
Abstract layer for association rule miners, bundling common methods for mining association rules.
This abstract class implements the `AssociationRuleMiner` interface and provides common functionality for mining association rules from a database of itemsets. It offers overloaded methods for mining rules with varying levels of constraints on the conclusions and overall limits.
Subclasses should implement specific rule mining algorithms by extending this class and providing their own implementations of the abstract methods.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionDefault constructor for the `AbstractAssociationRuleMiner` class. -
Method Summary
Modifier and TypeMethodDescriptionmineRules
(Collection<Collection<T>> database) Mines a set of association rules from the given database.mineRules
(Collection<Collection<T>> database, int conclusion_limit) Mines a set of association rules from the given database.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tweetyproject.machinelearning.assoc.AssociationRuleMiner
mineRules
Methods inherited from interface org.tweetyproject.machinelearning.assoc.FrequentPatternMiner
mineFrequentSets, mineFrequentSets
-
Constructor Details
-
AbstractAssociationRuleMiner
public AbstractAssociationRuleMiner()Default constructor for the `AbstractAssociationRuleMiner` class.This constructor is used to create an instance of the abstract class. Since this is an abstract class, this constructor will be called by subclasses when they are instantiated.
-
-
Method Details
-
mineRules
Description copied from interface:AssociationRuleMiner
Mines a set of association rules from the given database.- Specified by:
mineRules
in interfaceAssociationRuleMiner<T>
- Parameters:
database
- some database- Returns:
- a set of association rules.
-
mineRules
public Collection<AssociationRule<T>> mineRules(Collection<Collection<T>> database, int conclusion_limit) Description copied from interface:AssociationRuleMiner
Mines a set of association rules from the given database. Only those rules are mined where the conclusion has the maximal given number of elements.- Specified by:
mineRules
in interfaceAssociationRuleMiner<T>
- Parameters:
database
- some databaseconclusion_limit
- the maximal size of elements in the conclusion of the mined rules.- Returns:
- a set of association rules.
-