oracle.dmt.odm.result
Class ApplyTargetProbabilityItem
java.lang.Object
|
+--oracle.dmt.odm.MiningObject
|
+--oracle.dmt.odm.result.ApplyContentItem
|
+--oracle.dmt.odm.result.ApplyTargetProbabilityItem
- All Implemented Interfaces:
- java.io.Serializable
- public class ApplyTargetProbabilityItem
- extends ApplyContentItem
An instance of ApplyTargetProbabilityItem
contains a set of
target values whose prediction and probability are to appear in the apply output table,
regardless rank. The target values represented as categories must be
found in the target attribute used when building the model.
- Since:
- 9.2.0
- See Also:
- MiningApplyOutput,
Category, Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplyTargetProbabilityItem
public ApplyTargetProbabilityItem(Attribute predAttr,
Attribute probAttr,
Attribute rankAttr)
throws InvalidArgumentException
- Creates an empty instance of
ApplyTargetProbabilityItem
.
The addTarget
method must be subsequently invoked to add
target values the instance.
- Parameters:
destAttr
- The details of the column to appeat in the apply output table- Throws:
InvalidArgumentException
- destAttr
is null, or
the column name described in it is invalid.
getTargets
public Category[] getTargets()
- Returns an array of target values contained in the instance.
- Returns:
- Category[] - An array of target values to be scored
addTarget
public void addTarget(Category target)
throws InvalidArgumentException
- Adds a target value to be scored.
- Parameters:
target
- The target value to be added- Returns:
- void
- Throws:
InvalidArgumentException
- target
is null.
getPredictionAttribute
public Attribute getPredictionAttribute()
- Returns the attribute to appear in the output table as prediction column.
- Returns:
Attribute
- The prediction attribute
getProbabilityAttribute
public Attribute getProbabilityAttribute()
- Returns the attribute to appear in the output table as probability column.
- Returns:
Attribute
- The probability attribute
getRankAttribute
public Attribute getRankAttribute()
- Returns the attribute to appear in the output table as rank column.
- Returns:
Attribute
- The rank attribute