Package | Description |
---|---|
gov.sandia.cognition.learning.algorithm.tree |
Provides decision tree learning algorithms.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDecisionTreeNode<InputType,OutputType,InteriorType>
The
AbstractDecisionTreeNode class implements common functionality
for a decision tree node. |
class |
CategorizationTreeNode<InputType,OutputType,InteriorType>
The
CategorizationTreeNode implements a DecisionTreeNode for
a tree that does categorization. |
class |
RegressionTreeNode<InputType,InteriorType>
The
RegressionTreeNode implements a DecisionTreeNode for
a tree that does regression. |
Modifier and Type | Field and Description |
---|---|
protected DecisionTreeNode<InputType,OutputType> |
AbstractDecisionTreeNode.parent
The parent node of this node.
|
protected DecisionTreeNode<InputType,OutputType> |
DecisionTree.rootNode
The root node of the decision tree.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<InteriorType,DecisionTreeNode<InputType,OutputType>> |
AbstractDecisionTreeNode.childMap
The mapping of decider decision values to child nodes.
|
Modifier and Type | Method and Description |
---|---|
DecisionTreeNode<InputType,OutputType> |
AbstractDecisionTreeNode.chooseChild(InputType input) |
DecisionTreeNode<InputType,OutputType> |
DecisionTreeNode.chooseChild(InputType input)
Chooses the child node corresponding to the given input.
|
DecisionTreeNode<InputType,OutputType> |
DecisionTree.findTerminalNode(InputType input)
Finds the terminal node for the given input.
|
DecisionTreeNode<InputType,OutputType> |
DecisionTree.findTerminalNode(InputType input,
DecisionTreeNode<InputType,OutputType> node)
Finds the terminal node for the given input, starting from the given
node.
|
DecisionTreeNode<InputType,OutputType> |
AbstractDecisionTreeNode.getParent()
Gets the parent node for this node.
|
DecisionTreeNode<InputType,OutputType> |
DecisionTreeNode.getParent()
Gets the parent node for this node.
|
DecisionTreeNode<InputType,OutputType> |
DecisionTree.getRootNode()
Gets the root node of the decision tree.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<InteriorType,DecisionTreeNode<InputType,OutputType>> |
AbstractDecisionTreeNode.getChildMap()
Gets the mapping of decision values to child nodes.
|
java.util.Collection<? extends DecisionTreeNode<InputType,OutputType>> |
AbstractDecisionTreeNode.getChildren() |
java.util.Collection<? extends DecisionTreeNode<InputType,OutputType>> |
DecisionTreeNode.getChildren()
Gets the collection of children of the node.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractDecisionTreeNode.addChild(InteriorType value,
DecisionTreeNode<InputType,OutputType> child)
Adds a child for a given interior type.
|
OutputType |
DecisionTree.evaluateNode(InputType input,
DecisionTreeNode<InputType,OutputType> node)
Evaluates an input against the given node of a decision tree, using
recursion to come up with the answer.
|
DecisionTreeNode<InputType,OutputType> |
DecisionTree.findTerminalNode(InputType input,
DecisionTreeNode<InputType,OutputType> node)
Finds the terminal node for the given input, starting from the given
node.
|
void |
AbstractDecisionTreeNode.setParent(DecisionTreeNode<InputType,OutputType> parent)
Sets the parent node for this node.
|
void |
DecisionTree.setRootNode(DecisionTreeNode<InputType,OutputType> rootNode)
Sets the root node of the decision tree.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractDecisionTreeNode.setChildMap(java.util.Map<InteriorType,DecisionTreeNode<InputType,OutputType>> childMap)
Sets the mapping of decision values to child nodes.
|
Constructor and Description |
---|
AbstractDecisionTreeNode(DecisionTreeNode<InputType,OutputType> parent,
Categorizer<? super InputType,? extends InteriorType> decider,
java.lang.Object incomingValue)
Creates a new instance of CategorizationTreeNode.
|
CategorizationTree(DecisionTreeNode<InputType,OutputType> rootNode,
java.util.Set<OutputType> categories)
Creates a new instance of CategorizationTree.
|
CategorizationTreeNode(DecisionTreeNode<InputType,OutputType> parent,
Categorizer<? super InputType,? extends InteriorType> decider,
OutputType outputCategory,
java.lang.Object incomingValue)
Creates a new instance of CategorizationTreeNode.
|
CategorizationTreeNode(DecisionTreeNode<InputType,OutputType> parent,
OutputType outputCategory)
Creates a new instance of CategorizationTreeNode.
|
CategorizationTreeNode(DecisionTreeNode<InputType,OutputType> parent,
OutputType outputCategory,
java.lang.Object incomingValue)
Creates a new instance of CategorizationTreeNode.
|
DecisionTree(DecisionTreeNode<InputType,OutputType> rootNode)
Creates a new instance of DecisionTree.
|
RegressionTree(DecisionTreeNode<InputType,java.lang.Double> rootNode)
Creates a new instance of RegressionTree.
|
RegressionTreeNode(DecisionTreeNode<InputType,java.lang.Double> parent,
Categorizer<? super InputType,? extends InteriorType> decider,
double value)
Creates a new instance of RegressionTreeNode.
|
RegressionTreeNode(DecisionTreeNode<InputType,java.lang.Double> parent,
Categorizer<? super InputType,? extends InteriorType> decider,
Evaluator<? super InputType,java.lang.Double> scalarFunction,
double value,
java.lang.Object incomingValue)
Creates a new instance of RegressionTreeNode.
|
RegressionTreeNode(DecisionTreeNode<InputType,java.lang.Double> parent,
double value)
Creates a new instance of RegressionTreeNode.
|
RegressionTreeNode(DecisionTreeNode<InputType,java.lang.Double> parent,
Evaluator<? super InputType,java.lang.Double> scalarFunction,
double value)
Creates a new instance of RegressionTreeNode.
|
RegressionTreeNode(DecisionTreeNode<InputType,java.lang.Double> parent,
Evaluator<? super InputType,java.lang.Double> scalarFunction,
double value,
java.lang.Object incomingValue)
Creates a new instance of RegressionTreeNode.
|