public static class HoeffdingOptionTree.Node extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected DoubleVector |
observedClassDistribution |
Constructor and Description |
---|
HoeffdingOptionTree.Node(double[] classObservations) |
Modifier and Type | Method and Description |
---|---|
int |
calcByteSize() |
int |
calcByteSizeIncludingSubtree() |
double |
calculatePromise() |
void |
describeSubtree(HoeffdingOptionTree ht,
StringBuilder out,
int indent) |
HoeffdingOptionTree.FoundNode[] |
filterInstanceToLeaves(weka.core.Instance inst,
HoeffdingOptionTree.SplitNode parent,
int parentBranch,
boolean updateSplitterCounts) |
void |
filterInstanceToLeaves(weka.core.Instance inst,
HoeffdingOptionTree.SplitNode splitparent,
int parentBranch,
List<HoeffdingOptionTree.FoundNode> foundNodes,
boolean updateSplitterCounts) |
double[] |
getClassVotes(weka.core.Instance inst,
HoeffdingOptionTree 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 HoeffdingOptionTree.Node(double[] classObservations)
public int calcByteSize()
public int calcByteSizeIncludingSubtree()
public boolean isLeaf()
public HoeffdingOptionTree.FoundNode[] filterInstanceToLeaves(weka.core.Instance inst, HoeffdingOptionTree.SplitNode parent, int parentBranch, boolean updateSplitterCounts)
public void filterInstanceToLeaves(weka.core.Instance inst, HoeffdingOptionTree.SplitNode splitparent, int parentBranch, List<HoeffdingOptionTree.FoundNode> foundNodes, boolean updateSplitterCounts)
public double[] getObservedClassDistribution()
public double[] getClassVotes(weka.core.Instance inst, HoeffdingOptionTree ht)
public boolean observedClassDistributionIsPure()
public void describeSubtree(HoeffdingOptionTree 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.