Class AbstractAssociationRuleMiner<T>
- java.lang.Object
-
- net.sf.tweety.machinelearning.assoc.AbstractAssociationRuleMiner<T>
-
- Type Parameters:
T
- the type of items
- All Implemented Interfaces:
AssociationRuleMiner<T>
- Direct Known Subclasses:
AprioriMiner
public abstract class AbstractAssociationRuleMiner<T> extends java.lang.Object implements AssociationRuleMiner<T>
Abstract layer for association rule miners, bundles common methods.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description AbstractAssociationRuleMiner()
-
Method Summary
Modifier and Type Method Description java.util.Collection<AssociationRule<T>>
mineRules(java.util.Collection<java.util.Collection<T>> database)
Mines a set of association rules from the given database.java.util.Collection<AssociationRule<T>>
mineRules(java.util.Collection<java.util.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 net.sf.tweety.machinelearning.assoc.AssociationRuleMiner
mineRules
-
-
-
-
Method Detail
-
mineRules
public java.util.Collection<AssociationRule<T>> mineRules(java.util.Collection<java.util.Collection<T>> database)
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 java.util.Collection<AssociationRule<T>> mineRules(java.util.Collection<java.util.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.
-
-