Java Reference
In-Depth Information
Note that JDM does not have any algorithm-specific model details
defined for the association function since the model contents are con-
sidered general enough for most algorithms. Table 9-19 shows the list
of association-related interfaces and their methods.
Table 9-19
Association-related interfaces
association.AssociationSettings extends base.BuildSettings
Methods
Description
get/add/removeItem
(Object item, boolean included))
Used to get/add/remove an item from/to the list of items to
be excluded from (if included flag is false) or included in
(if true) the frequent itemset building.
get/add/removeItems
(Object[] items, boolean included))
Used to get/add/remove an items from/to the list of items to
be excluded when building the frequent itemsets (if included
flag is false), or included when building the frequent
itemsets (if true).
set/getMinSupport(double support)
Used to set/get the minimum support allowed for any
generated rule.
set/getMinConfidence
(double confidence)
Used to set/get the minimum confidence allowed for any
generated rule.
set/getMaxNumberRules(int maxRules)
Used to set/get the maximum number of rules to be included
in the model.
set/getMaxRuleLength( int maxLength)
Used to set/get the maximum number of items in a rule.
set/getMaxRuleComponentLength
(int maxLength, boolean isAntecedent)
Used to set/get the maximum number of items in a rule com-
ponent. The isAntecedent boolean flag is used to indicate
the antecedent (if true ) or consequent (if false )
set/getTaxonomyName
(String attributeName, String
taxonomyName)
Used to set/get the name of the Taxonomy object to be used
for the specified attribute.
association.AssociationModel extends base.Model
Methods
Description
getAverageTransactionSize():Double
Returns the average number of items in the transactions in
the build data used when building the model.
getItems():Collection
Returns a collection of all items used to build the model that
can be used to sequentially fetch items that occur in at least
one rule in the model.
getItemsets():Collection
Returns a collection of all itemsets found that can be used to
sequentially fetch the itemsets that occur in at least one rule
in the model.
Search WWH ::




Custom Search