|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.classify.C45.Node
public static class C45.Node
Constructor Summary | |
---|---|
C45.Node(InstanceList ilist,
C45.Node parent,
int minNumInsts)
|
|
C45.Node(InstanceList ilist,
C45.Node parent,
int minNumInsts,
int[] instIndices)
|
Method Summary | |
---|---|
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 |
java.lang.String |
getName()
|
int |
getNumDescendants()
Count the number of non-leaf descendant nodes |
C45.Node |
getParent()
|
C45.Node |
getRightChild()
|
int |
getSize()
|
java.lang.Object |
getSplitFeature()
|
java.lang.StringBuffer |
getStringBufferName()
|
boolean |
isLeaf()
|
boolean |
isRoot()
|
void |
print()
Prints the tree rooted at this node |
void |
print(java.lang.String prefix)
|
void |
split()
|
void |
stopGrowth()
Saves memory by allowing ilist to be garbage collected (deletes this node's associated instance list) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public C45.Node(InstanceList ilist, C45.Node parent, int minNumInsts)
public C45.Node(InstanceList ilist, C45.Node parent, int minNumInsts, int[] instIndices)
Method Detail |
---|
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 java.lang.Object getSplitFeature()
public InstanceList getInstances()
public int getNumDescendants()
public void split()
public double computeCostAndPrune()
public double getMDL()
public void stopGrowth()
public java.lang.String getName()
public java.lang.StringBuffer getStringBufferName()
public void print()
public void print(java.lang.String prefix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |