|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.LocatableObject | +--oracle.dmt.odm.model.MiningModel | +--oracle.dmt.odm.model.AssociationRulesModel
The abstract class AssociationRulesModel
is a Java representation of the association rules model. This class provides methods to access the rules in the model.
Method Summary | |
java.lang.String |
getAntecedentTableName() Deprecated. As of 10.0.1. |
float |
getAverageNumberOfItemsPerTransaction() Returns the average number of items per transaction in the data used to build this instance of assocication rules model. |
Category[] |
getItems() Returns the items in the input data used to build this instance of assocication rules model. |
int |
getMaxNumberOfItemsPerTransaction() Returns the maximum number of items per transaction in the data used to build this instance of assocication rules model. |
int |
getNumberOfItems() Returns the number of items in the data used to build this instance of assocication rules model. |
int |
getNumberOfRules() Returns the number of rules found in this instance of assocication rules model. |
int |
getNumberOfTransactions() Returns the number of transactions in the data used to build this instance of assocication rules model. |
static MiningRuleSet |
getRules(Connection dmsConn, java.lang.String modelName, int maxNumRules, RuleSortCriteria ruleOrder) Returns an instance of MiningRuleSet that contains the specified number of rules sorted in the specified order (confidence or support). |
static MiningRuleSet |
getRules(Connection dmsConn, java.lang.String modelName, RuleSortCriteria selectionCriterion, ComparisonFunction selectionFunction, float selectionPoint, RuleSortCriteria[] ruleOrder, SortOrder[] sortOrder, int maxNumRules) Returns an instance of MiningRuleSet that contains the specified number of rules sorted in the specified order (confidence or support). |
static MiningRuleSet |
getRulesByConfidence(Connection dmsConn, java.lang.String modelName, float confidence, int maxNumRules) Deprecated. As of 10.1. The same can be achieved by the new getRules method with the following parameters.
|
static MiningRuleSet |
getRulesByContents(Connection dmsConn, java.lang.String modelName, java.lang.String[] antecedentList, java.lang.String[] consequentList, int maxNumRules) Returns an instance of MiningRuleSet that contains the specified items as antecedent and consequent. |
static MiningRuleSet |
getRulesByContents(Connection dmsConn, java.lang.String modelName, java.lang.String[] antecedentList, java.lang.String[] consequentList, RuleSortCriteria selectionCriterion, ComparisonFunction selectionFunction, float selectionPoint, RuleSortCriteria[] ruleOrder, SortOrder[] sortOrder, int maxNumRules) Returns an instance of MiningRuleSet that contains the specified number of rules sorted in the specified order (confidence or support). |
static MiningRuleSet |
getRulesBySupport(Connection dmsConn, java.lang.String modelName, float support, int maxNumRules) Deprecated. As of 10.1. The same can be achieved by the new getRules method with the following parameters.
|
java.lang.String |
getRuleTableName() Deprecated. As of 10.0.1. |
static AssociationRulesModel |
restore(Connection dmsConn, java.lang.String modelName) Returns an instance of AssociationRulesModel with the specified name persisted in the data mining server. |
Methods inherited from class oracle.dmt.odm.model.MiningModel |
build, getBinCategoricalTableName, getBinNumericTableName, getMiningAlgorithm, getMiningFunction, getMiningFunctionSettings, getModelAlgorithm, getModelMiningFunction, getModelName, getSignature, listContents, listContents, listContents, listContents, remove, rename, storeLocationdata |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getNumberOfTransactions()
public int getMaxNumberOfItemsPerTransaction()
public float getAverageNumberOfItemsPerTransaction()
public int getNumberOfItems()
public int getNumberOfRules()
public java.lang.String getRuleTableName()
public java.lang.String getAntecedentTableName()
public Category[] getItems()
public static MiningRuleSet getRules(Connection dmsConn, java.lang.String modelName, int maxNumRules, RuleSortCriteria ruleOrder) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
MiningRuleSet
that contains the specified number of rules sorted in the specified order (confidence or support).dmsConn
- The connection to the data mining servermodelName
- The name of the model from which the rules are extractedmaxNumRules
- The maximum number of rules to be extractedruleOrder
- The order by which the rules are sorted (either support, confidence, ruleLength, or ruleID
)MiningRuleSet
that contains the retrieved mining rulesInvalidArgumentException
-
dmsConn
,modelName
,ruleOrder
is null, ormaxNumRules
is not a positive integer.java.sql.SQLException
- when an error occurs during the retrieval of rulesMiningObjectException
- when an invalid mining rule is foundODMException
MiningRuleSet
public static MiningRuleSet getRules(Connection dmsConn, java.lang.String modelName, RuleSortCriteria selectionCriterion, ComparisonFunction selectionFunction, float selectionPoint, RuleSortCriteria[] ruleOrder, SortOrder[] sortOrder, int maxNumRules) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
MiningRuleSet
that contains the specified number of rules sorted in the specified order (confidence or support).dmsConn
- The connection to the data mining servermodelName
- The name of the model from which the rules are extractedselectionCriterion
- The selection criterion by which the rules are selected (either by support, confidence, ruleLength or ruleID)selectionFunction
- A relational operator that, combined with selectionCriterion
and selectionPoint
, defines the range of the rules to be selected. The values that can be used are lessThan
, lessOrEqual
, equal
, greaterOrEqual
and greaterThan
.selectionPoint
- The value of the selection criterion. If selectionCriterion
is ruleLength or ruleID, the value is rounded to floor(selectionCriterion).maxNumRules
- The maximum number of rules to be extractedMiningRuleSet
that contains the retrieved mining rulesInvalidArgumentException
- is thrown when
dmsConn
is null,modelName
is null or invalid,selectionCriterion
is null,selectionFunction
is null,selectionPoint
is negative,ruleOrder
contains redundant order, or its size is greater than 4,sortOrder
is greater than 4, ormaxNumRules
is not a positive integer.java.sql.SQLException
- when an error occurs during the retrieval of rulesMiningObjectException
- when an invalid mining rule is foundODMException
MiningRuleSet
public static MiningRuleSet getRulesBySupport(Connection dmsConn, java.lang.String modelName, float support, int maxNumRules) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
getRules
method with the following parameters.
dmsConn
modelName
selectionCriterion=RuleSortCriteria.support
selectionFunction=ComparisonFunction.ge
selectionPoint=support threshold value
ruleOrder=null
sortOrder=null
maxNumRules
MiningRuleSet
that contains the specified number of mining rules whose support is greater than the specified value.dmsConn
- The connection to the data mining servermodelName
- The name of the model from which the rules are extractedsupport
- The support value for the rulesmaxNumRules
- The maximum number of rules to be extractedMiningRuleSet
that contains the retrieved mining rulesInvalidArgumentException
-
dmsConn
,modelName
,maxNumRules
is not a positive integer
support
is out of range (negative or greater than 1).java.sql.SQLException
- when an error occurs during the retrieval of rulesMiningObjectException
- when an invalid mining rule is foundODMException
MiningRuleSet
public static MiningRuleSet getRulesByConfidence(Connection dmsConn, java.lang.String modelName, float confidence, int maxNumRules) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
getRules
method with the following parameters.
dmsConn
modelName
selectionCriterion=RuleSortCriteria.confidence
selectionFunction=ComparisonFunction.ge
selectionPoint=confidence threshold value
ruleOrder=null
sortOrder=null
maxNumRules
MiningRuleSet
that contains the specified number of rules whose confidence is greater than the specified value.dmsConn
- The connection to the data mining servermodelName
- The name of the model from which the rules are extractedconfidence
- The confidence value for the rulesmaxNumRules
- The maximum number of rules to be extractedMiningRuleSet
that contains the retrieved mining rulesInvalidArgumentException
-
dmsConn
,modelName
,maxNumRules
is not a positive integer
support
is out of range (negative or greater than 1).java.sql.SQLException
- when an error occurs during the retrieval of rulesMiningObjectException
- when an invalid mining rule is foundODMException
MiningRuleSet
public static MiningRuleSet getRulesByContents(Connection dmsConn, java.lang.String modelName, java.lang.String[] antecedentList, java.lang.String[] consequentList, int maxNumRules) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
MiningRuleSet
that contains the specified items as antecedent and consequent. The rules are ordered by rule length, support and confidence.dmsConn
- The connection to the data mining servermodelName
- The name of the model from which the rules are extractedantecedentList
- A list of antecedent items. The maximum number of items in the list is 1000.consequentList
- A list of consequent items. The maximum number of items in the list is 1000.MiningRuleSet
that contains the retrieved mining rulesInvalidArgumentException
-
dmsConn
,modelName
,maxNumRules
is not a positive integer, or
antecedentList
and consequentList
are null.java.sql.SQLException
- when an error occurs during the retrieval of rulesMiningObjectException
- when an invalid mining rule is foundODMException
MiningRuleSet
public static MiningRuleSet getRulesByContents(Connection dmsConn, java.lang.String modelName, java.lang.String[] antecedentList, java.lang.String[] consequentList, RuleSortCriteria selectionCriterion, ComparisonFunction selectionFunction, float selectionPoint, RuleSortCriteria[] ruleOrder, SortOrder[] sortOrder, int maxNumRules) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
MiningRuleSet
that contains the specified number of rules sorted in the specified order (confidence or support).dmsConn
- The connection to the data mining servermodelName
- The name of the model from which the rules are extractedantecedentList
- A list of antecedent items. The maximum number of items in the list is 1000.consequentList
- A list of consequent items. The maximum number of items in the list is 1000.selectionCriterion
- The selection criterion by which the rules are selected (either by support, confidence, ruleLength or ruleID)selectionFunction
- A relational operator that, combined with selectionCriterion
and selectionPoint
, defines the range of the rules to be selected. The values that can be used are le
(less than or equal), equal
and ge
(greater than or equal).selectionPoint
- The value of the selection criterion. If selectionCriterion
is ruleLength or ruleID, the value is rounded to floor(selectionCriterion).maxNumRules
- The maximum number of rules to be extractedMiningRuleSet
that contains the retrieved mining rulesInvalidArgumentException
- when dmsConn
, modelName
, or sortOrder
is null, or maxNumRules
is not a positive integer.java.sql.SQLException
- when an error occurs during the retrieval of rulesMiningObjectException
- when an invalid mining rule is foundODMException
MiningRuleSet
public static AssociationRulesModel restore(Connection dmsConn, java.lang.String modelName) throws java.sql.SQLException, MiningObjectException, InvalidArgumentException, ODMException
AssociationRulesModel
with the specified name persisted in the data mining server.dmsConn
- The connection to the data mining servermodelName
- The name of the model to be restoredAssociationRulesModel
restoredODMException
- when modelName
is empty or length exceeds the limit.InvalidArgumentException
-
dmsConn
is null, ormodelName
is null.java.sql.SQLException
- when an error occurs during the retrieval of rulesMiningObjectException
- when the restored model is not an instance of AssociationRulesModel
.
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |