public static class C45.Node extends Object implements Serializable
| Constructor and Description |
|---|
Node(InstanceList ilist,
C45.Node parent,
int minNumInsts) |
Node(InstanceList ilist,
C45.Node parent,
int minNumInsts,
int[] instIndices) |
| Modifier and Type | Method and Description |
|---|---|
double |
computeCostAndPrune() |
int |
depth()
The root has depth zero.
|
GainRatio |
getGainRatio() |
InstanceList |
getInstances() |
C45.Node |
getLeftChild() |
double |
getMDL()
Calculates the minimum description length of this node, i.e.,
the length of the binary encoding that describes the feature
and the split value used at this node
|
String |
getName() |
int |
getNumDescendants()
Count the number of non-leaf descendant nodes
|
C45.Node |
getParent() |
C45.Node |
getRightChild() |
int |
getSize() |
Object |
getSplitFeature() |
StringBuffer |
getStringBufferName() |
boolean |
isLeaf() |
boolean |
isRoot() |
void |
print()
Prints the tree rooted at this node
|
void |
print(String prefix) |
void |
split() |
void |
stopGrowth()
Saves memory by allowing ilist to be garbage collected
(deletes this node's associated instance list)
|
public Node(InstanceList ilist, C45.Node parent, int minNumInsts)
public Node(InstanceList ilist, C45.Node parent, int minNumInsts, int[] instIndices)
public int depth()
public int getSize()
public boolean isLeaf()
public boolean isRoot()
public C45.Node getParent()
public C45.Node getLeftChild()
public C45.Node getRightChild()
public GainRatio getGainRatio()
public Object getSplitFeature()
public InstanceList getInstances()
public int getNumDescendants()
public void split()
public double computeCostAndPrune()
public double getMDL()
public void stopGrowth()
public String getName()
public StringBuffer getStringBufferName()
public void print()
public void print(String prefix)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.