|
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.result.RecordInstance
An instance of RecordInstance
represents a single record of data. It is primarily used as input and output of the apply operation.
Field Summary | |
static java.lang.String |
PROBABILITY_ATTRIBUTE_NAME Constant specifying the name of the probability attribute as used in the apply result. |
static java.lang.String |
RULE_ID_ATTRIBUTE_NAME Constant specifying the name of the rule id attribute as used in the ABN record apply result. |
static java.lang.String |
RULE_RANK_ATTRIBUTE_NAME Constant specifying the name of the rule rank attribute as used in the ABN record apply result. |
static java.lang.String |
SCORE_ATTRIBUTE_NAME Constant specifying the name of the score attribute as used in the apply result. |
Constructor Summary | |
RecordInstance() Creates an empty instance of record instance. |
Method Summary | |
void |
addAttributeInstance(AttributeInstance instance) Adds an attribute instance to this record instance. |
void |
addAttributeInstance(java.lang.String attrName, float value) Adds an attribute instance of float typr with the specified name to this record instance. |
void |
addAttributeInstance(java.lang.String attrName, int value) Adds an attribute instance of integer type with the specified name to this record instance. |
void |
addAttributeInstance(java.lang.String attrName, java.lang.String value) Adds an attribute instance of string typr with the specified name to this record instance. |
AttributeInstance |
getValue(java.lang.String attrName) Returns an AttrributeInstance with the given name. |
AttributeInstance[] |
getValues() Returns an array of attrribute instances contained in this record instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROBABILITY_ATTRIBUTE_NAME
public static final java.lang.String SCORE_ATTRIBUTE_NAME
public static final java.lang.String RULE_ID_ATTRIBUTE_NAME
public static final java.lang.String RULE_RANK_ATTRIBUTE_NAME
Constructor Detail |
public RecordInstance()
addAttributeInstance
must be invoked to create a valid record instance.Method Detail |
public void addAttributeInstance(AttributeInstance instance) throws InvalidArgumentException
AttributeInstance
for record apply operation.
Refer to apply
methods in SupervisedModel
for further details on record apply operation.
instance
- An attribute instance to be addedInvalidArgumentException
-
instance
is null, orinstance
is not int
, float
or string
.public void addAttributeInstance(java.lang.String attrName, int value) throws ODMException
AttributeInstance
of integer type for record apply operation.
Refer to apply
methods in SupervisedModel
for further details on record apply operation.
attrName
- The name of the attribute instance to be addedvalue
- The value of the attribute instanceODMException
- attrName
is null, or empty, or exceeds 30 bytes in length.public void addAttributeInstance(java.lang.String attrName, float value) throws ODMException
AttributeInstance
of float type for record apply operation.
Refer to apply
methods in SupervisedModel
for further details on record apply operation.
attrName
- The name of the attribute instance to be addedvalue
- The value of the attribute instanceODMException
- attrName
is null, or empty, or exceeds 30 bytes in length.public void addAttributeInstance(java.lang.String attrName, java.lang.String value) throws ODMException
AttributeInstance
of string type for record apply operation.
Refer to apply
methods in SupervisedModel
for further details on record apply operation.
attrName
- The name of the attribute instance to be addedvalue
- The value of the attribute instanceODMException
- attrName
is null, or empty, or exceeds 30 bytes in length.public AttributeInstance[] getValues()
AttributeInstance[]
- An array of attribute instancespublic AttributeInstance getValue(java.lang.String attrName)
AttrributeInstance
with the given name.attrName
- The name of the attribute instance to be returnedAttributeInstance
- The attribute instance with the specified name
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |