Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

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

Constructor Summary
ApplyTargetProbabilityItem(Attribute predAttr, Attribute probAttr, Attribute rankAttr)
          Creates an empty instance of ApplyTargetProbabilityItem.

 

Method Summary
 void addTarget(Category target)
          Adds a target value to be scored.
 Attribute getPredictionAttribute()
          Returns the attribute to appear in the output table as prediction column.
 Attribute getProbabilityAttribute()
          Returns the attribute to appear in the output table as probability column.
 Attribute getRankAttribute()
          Returns the attribute to appear in the output table as rank column.
 Category[] getTargets()
          Returns an array of target values contained in the instance.

 

Methods inherited from class oracle.dmt.odm.result.ApplyContentItem
getDestinationAttribute

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

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.
Throws:
InvalidArgumentException - destAttr is null, or the column name described in it is invalid.
Method Detail

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

Copyright © 2003 Oracle Corporation. All Rights Reserved.