|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An AssociationSettings instance
supports build settings specific to the
association mining function.
MiningObject,
BuildSettings| Method Summary | |
void |
addItem(java.lang.Object item,
boolean included)
Adds a new item to the list of items to be excluded from (if included is false) or included in (if true) the frequent itemset building. |
void |
addItems(java.lang.Object[] itemArray,
boolean included)
Adds an array of items to the list of items to be excluded from (if included is false) or included in (if true) the frequent itemset building. |
java.lang.Object[] |
getItems(boolean included)
Returns the items to be included from the itemset discovery process if true, returns the items to be excluded if false. |
int |
getMaxNumberOfRules()
Returns the maximum number of rules allowed in the model. |
int |
getMaxRuleComponentLength(boolean isAntecedent)
Returns the maximum number of items in a rule component. |
int |
getMaxRuleLength()
Returns the maximum number of items in a rule. |
java.lang.Double |
getMinConfidence()
Returns the minimum confidence threshold of generated association rules. |
java.lang.Double |
getMinSupport()
Returns the minimum support of itemsets. |
java.lang.String |
getTaxonomyName(java.lang.String attributeName)
Returns the name of the Taxonomy object to be used for the specified attribute. |
void |
removeItem(java.lang.Object item,
boolean included)
Removes an item from the list of items to be excluded from (if included is false) or included in (if true) the frequent itemset building. |
void |
removeItems(java.lang.Object[] itemArray,
boolean included)
Removes an array of items from the list of items to be excluded from (if included is false or included in (if true) the frequent itemset building. |
void |
setMaxNumberOfRules(int maxRules)
Sets the maximum number of rules to be included in the model. |
void |
setMaxRuleComponentLength(int maxLength,
boolean isAntecedent)
Sets the maximum number of items in a rule component. |
void |
setMaxRuleLength(int maxRuleLength)
Sets the maximum number of items that can be present in a rule. |
void |
setMinConfidence(double minConfidence)
Sets the minimum confidence allowed for any generated rule. |
void |
setMinSupport(double minSupport)
Sets the minimum support of an itemset. |
void |
setTaxonomyName(java.lang.String attributeName,
java.lang.String taxonomyName)
Sets the name of a Taxonomy to be used for the specified attribute. |
| Methods inherited from interface javax.datamining.base.BuildSettings |
getAlgorithmSettings, getDesiredExecutionTimeInMinutes, getLogicalAttributes, getLogicalData, getLogicalDataName, getMiningFunction, getOutlierIdentification, getOutlierTreatment, getUsage, getWeight, getWeightAttribute, setAlgorithmSettings, setDesiredExecutionTimeInMinutes, setLogicalDataName, setOutlierIdentification, setOutlierTreatment, setUsage, setWeight, setWeightAttribute, verify |
| Methods inherited from interface javax.datamining.MiningObject |
getCreationDate, getCreatorInfo, getDescription, getName, getObjectIdentifier, getObjectType, setDescription |
| Method Detail |
public void addItem(java.lang.Object item,
boolean included)
throws JDMException
If an item is added as both included and excluded, an exception is thrown.
item - An item to be excluded/included from consideration during model building.included - A flag to indicate that the item is added to the included items (if true) or excluded items (if false).
JDMException
public void addItems(java.lang.Object[] itemArray,
boolean included)
throws JDMException
If an item is added as both included and excluded, an exception is thrown.
itemArray - An array of items to be excluded from or included in consideration during model building.included - A flag to indicate that the items are added to the included items (if true) or excluded items (if false).
JDMExceptionpublic java.lang.Object[] getItems(boolean included)
included - A flag to indicate whether items to be included (if true) or excluded (if false) are to be returned.
public int getMaxNumberOfRules()
public int getMaxRuleComponentLength(boolean isAntecedent)
isAntecedent is true. Otherwise, returns the maximum number of items for consequents.
isAntecedent - A flag to indicate whether the antecedent (if true) or consequent (if false) is to be limited.
public int getMaxRuleLength()
public java.lang.Double getMinConfidence()
public java.lang.Double getMinSupport()
public java.lang.String getTaxonomyName(java.lang.String attributeName)
throws JDMException
Taxonomy object to be used for the specified attribute.
attributeName - The name of the attribute.
JDMException
public void removeItem(java.lang.Object item,
boolean included)
item - An item to be removed from the excluded/included items.included - A flag to indicate that the item is removed from the included items (if true) or excluded items (if false).
public void removeItems(java.lang.Object[] itemArray,
boolean included)
itemArray - An array of items to be removed from the excluded/included items.included - A flag to indicate that the items are removed from the included items (if true) or excluded items (if false).
public void setMaxNumberOfRules(int maxRules)
maxRules - The maximum number of rules to be found.
public void setMaxRuleComponentLength(int maxLength,
boolean isAntecedent)
isAntecedent is true, this method sets the maximum number of items in antecedents. Otherwise, it sets the maximum number of items in consequents. The number must be a positive integer.
maxLength - The maximum number of items for antecedent or consequent in the rules.isAntecedent - A flag to indicate whether the antecedent (if true) or consequent (if false) is to be limited.
public void setMaxRuleLength(int maxRuleLength)
maxRuleLength - The maximum rule length in terms of the number of items.
public void setMinConfidence(double minConfidence)
minConfidence - The minimum confidence of the association rules to be found.
public void setMinSupport(double minSupport)
minSupport - The minimum support of the association rules to be found.
public void setTaxonomyName(java.lang.String attributeName,
java.lang.String taxonomyName)
throws JDMException
Taxonomy to be used for the specified attribute.
attributeName - The name of the attribute for which the taxonomy is to be used.taxonomyName - The name of the taxonomy.
JDMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||