Package | Description |
---|---|
weka.classifiers.trees | |
weka.classifiers.trees.adtree |
Modifier and Type | Field and Description |
---|---|
protected PredictionNode |
ADTree.m_root
The root of the tree
|
protected PredictionNode |
ADTree.m_search_bestInsertionNode
The best node to insert under, as found so far by the latest search
|
Modifier and Type | Method and Description |
---|---|
protected void |
ADTree.graphTraverse(PredictionNode currentNode,
StringBuffer text,
int splitOrder,
int predOrder,
Instances instances)
Traverses the tree, graphing each node.
|
protected int |
ADTree.numOfAllNodes(PredictionNode root)
Returns the total number of nodes in a tree.
|
protected int |
ADTree.numOfPredictionLeafNodes(PredictionNode root)
Returns the number of leaf nodes in a tree - prediction nodes without
children.
|
protected int |
ADTree.numOfPredictionNodes(PredictionNode root)
Returns the number of prediction nodes in a tree.
|
protected double |
ADTree.predictionValueForInstance(Instance inst,
PredictionNode currentNode,
double currentValue)
Returns the class prediction value (vote) for an instance.
|
protected String |
ADTree.toString(PredictionNode currentNode,
int level)
Traverses the tree, forming a string that describes it.
|
Modifier and Type | Method and Description |
---|---|
PredictionNode |
TwoWayNumericSplit.getChildForBranch(int branchNum)
Gets the child for a branch of the split.
|
abstract PredictionNode |
Splitter.getChildForBranch(int branchNum)
Gets the child for a branch of the split.
|
PredictionNode |
TwoWayNominalSplit.getChildForBranch(int branchNum)
Gets the child for a branch of the split.
|
Modifier and Type | Method and Description |
---|---|
void |
PredictionNode.merge(PredictionNode merger,
ADTree mergingTo)
Merges this node with another.
|
void |
TwoWayNumericSplit.setChildForBranch(int branchNum,
PredictionNode childPredictor)
Sets the child for a branch of the split.
|
abstract void |
Splitter.setChildForBranch(int branchNum,
PredictionNode childPredictor)
Sets the child for a branch of the split.
|
void |
TwoWayNominalSplit.setChildForBranch(int branchNum,
PredictionNode childPredictor)
Sets the child for a branch of the split.
|
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.