|
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.settings.function.MiningFunctionSettings | +--oracle.dmt.odm.settings.function.AssociationRulesFunctionSettings
An instance of AssociationRulesFunctionSettings
describes settings for an association rules model.
Association rules are used for the discovery of relationships or correlations among a set of items. For example, the presence of one pattern implies the presence of another pattern. Association rules help to identify the attribute value conditions that occur frequently together in a given set of data. Association analysis is widely used in transaction data analysis for directed marketing, catalog design, and other business decision-making process. Association rules have two important characteristics, support and confidence.
As of ODM 9.2.0, only one algorithm is supported for association rules with no algorithm-specific settings.
Field Summary | |
static int |
MAX_RULE_LENGTH |
static int |
MIN_RULE_LENGTH |
Constructor Summary | |
AssociationRulesFunctionSettings(float minSupport, float minConfidence, int maxRuleLength, LogicalDataSpecification lds, DataUsageSpecification dus) Creates an instance of association rules function settings with the specified parameters. | |
AssociationRulesFunctionSettings(float minSupport, float minConfidence, int maxRuleLength, LogicalDataSpecification lds, DataUsageSpecification dus, MiningAlgorithmSettings algorithm) Deprecated. As of ODM 9.2.0. Mining algorithm settings is not required to build an association rules model. Use other constructor. | |
AssociationRulesFunctionSettings(float minSupport, float minConfidence, LogicalDataSpecification lds, DataUsageSpecification dus) Creates an instance of association rules function settings with the specified parameters. |
Method Summary | |
void |
addExcludedCategory(Category cat) Adds a category to be excluded from the rule discovery. |
static AssociationRulesFunctionSettings |
create(Connection dmsConn, MiningAlgorithmSettings algorithm, PhysicalDataSpecification pdsDataSpec, DataPreparationStatus dpStatus, float minSupport, float minConfidence, int maxRuleLength) Creates an instance of AssociationRulesFunctionSettings from the specified parameters. |
static AssociationRulesFunctionSettings |
create(Connection dmsConn, PhysicalDataSpecification pdsDataSpec, DataPreparationStatus dpStatus, float minSupport, float minConfidence, int maxRuleLength) Creates an instance of AssociationRulesFunctionSettings from the specified parameters. |
MiningAttribute[] |
getActiveAttributes() Returns an array of active mining attributes in this function settings. |
Category[] |
getExcludedCategory() Returns the excluded categories. |
int |
getMaximumRuleLength() Returns the maximum rule length. |
float |
getMinimumConfidence() Returns the minimum confidence. |
float |
getMinimumSupport() Returns the minimum support. |
MiningAttribute[] |
getUnpreparedActiveAttributes() Returns an array of unprepared active mining attributes in this function settings. |
void |
validate() Validates the correctness of this function settings. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MIN_RULE_LENGTH
public static final int MAX_RULE_LENGTH
Constructor Detail |
public AssociationRulesFunctionSettings(float minSupport, float minConfidence, int maxRuleLength, LogicalDataSpecification lds, DataUsageSpecification dus, MiningAlgorithmSettings algorithm) throws InvalidArgumentException
minSupport
- The minimum support of the rules to be foundminConfidence
- The minimum confidence of the rules to be foundmaxRuleLength
- - The maximum rule length in terms of the number of itemslds
- An instance of LogicalDataSpecification
that specifies the logical data to be used for model buildingdus
- An instance of DataUsageSpecification
that defines how the logical data is to be used for model buildingalgorithm
- An instance of MiningAlgorithmSettings that specifies the algorithm specific parameters to be used for model building. In ODM 9.2.0, this must be null.InvalidArgumentException
-
lds
is null,minSupport
is invalid (less than 0 or greather than 1),minConfidence
is invalid (less than 0 or greather than 1), ormaxRuleLength
is invalid (less than 2 or greather than 20).public AssociationRulesFunctionSettings(float minSupport, float minConfidence, int maxRuleLength, LogicalDataSpecification lds, DataUsageSpecification dus) throws InvalidArgumentException
minSupport
- The minimum support of the rules to be foundminConfidence
- The minimum confidence of the rules to be foundmaxRuleLength
- - The maximum rule length in terms of the number of itemslds
- An instance of LogicalDataSpecification
that specifies the logical data to be used for model buildingdus
- An instance of DataUsageSpecification
that defines how the logical data is to be used for model buildingInvalidArgumentException
-
lds
is null,minSupport
is invalid (less than 0 or greather than 1),minConfidence
is invalid (less than 0 or greather than 1), ormaxRuleLength
is invalid (less than 2 or greather than 20).public AssociationRulesFunctionSettings(float minSupport, float minConfidence, LogicalDataSpecification lds, DataUsageSpecification dus) throws InvalidArgumentException
minSupport
- The minimum support of the rules to be foundminConfidence
- The minimum confidence of the rules to be foundlds
- An instance of LogicalDataSpecification
that specifies the logical data to be used for model buildingdus
- An instance of DataUsageSpecification
that defines how the logical data is to be used for model buildingInvalidArgumentException
-
lds
is null,minSupport
is invalid (less than 0 or greather than 1), orminConfidence
is invalid (less than 0 or greather than 1).Method Detail |
public void addExcludedCategory(Category cat)
cat
- A category to be excludedpublic Category[] getExcludedCategory()
public float getMinimumSupport()
public float getMinimumConfidence()
public int getMaximumRuleLength()
public MiningAttribute[] getActiveAttributes()
AttributeUsage
public MiningAttribute[] getUnpreparedActiveAttributes()
AttributeUsage
, DataPreparationStatus
public void validate() throws MiningObjectException
MiningObjectException
- when this function settings is not validpublic static AssociationRulesFunctionSettings create(Connection dmsConn, PhysicalDataSpecification pdsDataSpec, DataPreparationStatus dpStatus, float minSupport, float minConfidence, int maxRuleLength) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
AssociationRulesFunctionSettings
from the specified parameters.dmsConn
- A connection to the data mining serverpdsDataSpec
- An instance of PhysicalDataSpecification
that specifies the input datadpStatus
- An instance of DataPreparationStatus
that indicates whether the data is discretized.minSupport
- - The value of minimum supportminConfidence
- - The value of minimum confidencemaxRuleLength
- - The value of maximum rule lengthAssociationRulesFunctionSettings
InvalidArgumentException
-
dmsConn
is null,lds
is null,minSupport
is invalid (less than 0 or greather than 1),minConfidence
is invalid (less than 0 or greather than 1), ormaxRuleLength
is invalid (less than 2 or greather than 20).java.sql.SQLException
- when an error occurs during access to the input dataMiningObjectException
- inherited exceptionODMException
- inherited exceptionpublic static AssociationRulesFunctionSettings create(Connection dmsConn, MiningAlgorithmSettings algorithm, PhysicalDataSpecification pdsDataSpec, DataPreparationStatus dpStatus, float minSupport, float minConfidence, int maxRuleLength) throws java.sql.SQLException, InvalidArgumentException, MiningObjectException, ODMException
AssociationRulesFunctionSettings
from the specified parameters.dmsConn
- A connection to the data mining serveralgorithm
- mining algorithmpdsDataSpec
- An instance of PhysicalDataSpecification
that specifies the input datadpStatus
- An instance of DataPreparationStatus
that indicates whether the data is discretized.minSupport
- - The value of minimum supportminConfidence
- - The value of minimum confidencemaxRuleLength
- - The value of maximum rule lengthAssociationRulesFunctionSettings
InvalidArgumentException
- thrown when
dmsConn
is null,lds
is null,minSupport
is invalid (less than 0 or greather than 1),minConfidence
is invalid (less than 0 or greather than 1), ormaxRuleLength
is invalid (less than 2 or greather than 20).java.sql.SQLException
- when an error occurs during access to the input dataMiningObjectException
- inherited exceptionODMException
- inherited exception
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |