public static class HoeffdingTree.Node extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected DoubleVector |
observedClassDistribution |
Constructor and Description |
---|
HoeffdingTree.Node(double[] classObservations) |
Modifier and Type | Method and Description |
---|---|
int |
calcByteSize() |
int |
calcByteSizeIncludingSubtree() |
double |
calculatePromise() |
void |
describeSubtree(HoeffdingTree ht,
StringBuilder out,
int indent) |
HoeffdingTree.FoundNode |
filterInstanceToLeaf(weka.core.Instance inst,
HoeffdingTree.SplitNode parent,
int parentBranch) |
double[] |
getClassVotes(weka.core.Instance inst,
HoeffdingTree ht) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double[] |
getObservedClassDistribution() |
boolean |
isLeaf() |
boolean |
observedClassDistributionIsPure() |
int |
subtreeDepth() |
copy, copy, measureByteSize, measureByteSize, toString
protected DoubleVector observedClassDistribution
public int calcByteSize()
public int calcByteSizeIncludingSubtree()
public boolean isLeaf()
public HoeffdingTree.FoundNode filterInstanceToLeaf(weka.core.Instance inst, HoeffdingTree.SplitNode parent, int parentBranch)
public double[] getObservedClassDistribution()
public double[] getClassVotes(weka.core.Instance inst, HoeffdingTree ht)
public boolean observedClassDistributionIsPure()
public void describeSubtree(HoeffdingTree ht, StringBuilder out, int indent)
public int subtreeDepth()
public double calculatePromise()
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.