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

B12276-01

oracle.dmt.odm.model
Class TreeNode

java.lang.Object
  |
  +--oracle.dmt.odm.model.TreeNode

public class TreeNode
extends java.lang.Object

An instance of TreeNode characterizes a partition of a multidimensional dataset. It is extracted from metadata that results from a mining (training) run. This information forms part of a rule that can be used to construct a human interpretable view of factors that correlate to the target. Its ancester nodes contain the set of predicates that form a sub-rule that classifies the rows of a dataset as being in or not in the node. Its predicate, if any, define its child nodes. Nodes without children are called leaves. The set of leaves in the selected subtree form the decision tree's final partitioning of the multidimensional data. In addition, a treenode may contain a score distribution, which characterizes the distribution of data at that node with respect to a reference dataset.

Since:
9.2.0

Constructor Summary
TreeNode()
           

 

Method Summary
 TreeNode[] getChildren()
          Returns the array of child TreeNodes associated with this tree node.
 int getNodeId()
          Returns the node id.
 TreeNode getParent()
          Returns the parent TreeNode of this tree node.
 Predicate getPredicate()
          Returns the Predicate, if any, characterizing the relation between the node and its children.
 int getPredictedTargetCount()
          Returns the highest probability predicted target count associated with this tree node.
 float getPredictedTargetProbability()
          Returns the highest probability predicted target probability associated with this tree node.
 Category getPredictedTargetValue()
          Returns the highest probability predicted target value associated with this tree node.
 TargetItem[] getTargetItems()
          Returns an array of the target items associated with this tree node.
 int getTreeNum()
          Returns the tree number associated with this tree node.

 

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

 

Constructor Detail

TreeNode

public TreeNode()
Method Detail

getTargetItems

public TargetItem[] getTargetItems()
Returns an array of the target items associated with this tree node.
Returns:
TargetItem[] - array of target items.
Since:
9.2.0.4

getPredicate

public Predicate getPredicate()
Returns the Predicate, if any, characterizing the relation between the node and its children.
Returns:
The predicate

getChildren

public TreeNode[] getChildren()
Returns the array of child TreeNodes associated with this tree node.
Returns:
Array of child tree nodes

getPredictedTargetCount

public int getPredictedTargetCount()
Returns the highest probability predicted target count associated with this tree node.
Returns:
int - highest probability predicted target count
Since:
9.2.0.4

getPredictedTargetProbability

public float getPredictedTargetProbability()
Returns the highest probability predicted target probability associated with this tree node.
Returns:
float - highest probability predicted target probability
Since:
9.2.0.4

getPredictedTargetValue

public Category getPredictedTargetValue()
Returns the highest probability predicted target value associated with this tree node.
Returns:
Highest probability predicted target value

getNodeId

public int getNodeId()
Returns the node id.
Returns:
int - node id
Since:
9.2.0.4

getTreeNum

public int getTreeNum()
Returns the tree number associated with this tree node.
Returns:
Tree number

getParent

public TreeNode getParent()
Returns the parent TreeNode of this tree node.
Returns:
Parent tree node

Copyright © 2003 Oracle Corporation. All Rights Reserved.