|
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.data.Attribute | +--oracle.dmt.odm.data.MiningAttribute
An instance of MiningAttribute
is a logical concept that describes a domain of data to be used as input to data mining operations. Mining attributes are typically either categorical or numerical. Each mining attribute must have a unique name with a given LogicalDataSpecification
instance.
Constructor Summary | |
MiningAttribute(java.lang.String name, DataType dataType, AttributeType attributeType) Creates a new MiningAttribute instance with the specified name, data type and attribute type. |
Method Summary | |
boolean |
equals(MiningAttribute attribute) Checks the equality of this attribute against the specified attribute. |
AttributeType |
getAttributeType() Returns the type of this attribute. |
CategorySet |
getCategorySet() Returns CategorySet associated with this mining attribute. |
SparsitySpecification |
getSparsitySpecification() Returns SparsitySpecification associated with an attribute. |
int |
getValueCount() Deprecated. As of ODM 9.2.0, distinct values are not counted. |
void |
setAttributeType(AttributeType attributeType) Sets the attribute type. |
void |
setCategorySet(CategorySet categorySet) Sets CategorySet for the mining attribute. |
void |
setSparsitySpecification(SparsitySpecification sparsitySpec) Sets SparsitySpecification associated with an attribute. |
Methods inherited from class oracle.dmt.odm.data.Attribute |
equals, getDataType, getName, setDataType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MiningAttribute(java.lang.String name, DataType dataType, AttributeType attributeType) throws InvalidArgumentException, ODMException
MiningAttribute
instance with the specified name, data type and attribute type.name
- The name of the attributedataType
- The data type of the attribute (e.g., int)attributeType
- The type of the attribute (e.g., categorical)InvalidArgumentException
-
name
, dataType
, or attributeType
is null, orname
is null, empty or exceeds 30 bytes in length.ODMException
Method Detail |
public int getValueCount()
int
- The number of distinct valuespublic AttributeType getAttributeType()
AttributeType
- The type of this attributeAttributeType
public boolean equals(MiningAttribute attribute)
attribute
- An attribute to be comparedpublic void setAttributeType(AttributeType attributeType)
attributeType
- attribute typeAttributeType
public CategorySet getCategorySet()
public void setCategorySet(CategorySet categorySet) throws ODMException, InvalidArgumentException
categorySet
- category set.InvalidArgumentException
- is thrown - when categorySet is nullODMException
- is thrown - when setCategorySet is invoked for an attriubute whose AttributeType is not categorical.public SparsitySpecification getSparsitySpecification()
public void setSparsitySpecification(SparsitySpecification sparsitySpec)
sparsitySpec
- SparsitySpecification enum.
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |