public static class HoeffdingTree.SplitNode extends HoeffdingTree.Node
Modifier and Type | Field and Description |
---|---|
protected AutoExpandVector<HoeffdingTree.Node> |
children |
protected InstanceConditionalTest |
splitTest |
observedClassDistribution
Constructor and Description |
---|
HoeffdingTree.SplitNode(InstanceConditionalTest splitTest,
double[] classObservations) |
HoeffdingTree.SplitNode(InstanceConditionalTest splitTest,
double[] classObservations,
int size) |
Modifier and Type | Method and Description |
---|---|
int |
calcByteSize() |
int |
calcByteSizeIncludingSubtree() |
void |
describeSubtree(HoeffdingTree ht,
StringBuilder out,
int indent) |
HoeffdingTree.FoundNode |
filterInstanceToLeaf(weka.core.Instance inst,
HoeffdingTree.SplitNode parent,
int parentBranch) |
HoeffdingTree.Node |
getChild(int index) |
int |
instanceChildIndex(weka.core.Instance inst) |
boolean |
isLeaf() |
int |
numChildren() |
void |
setChild(int index,
HoeffdingTree.Node child) |
int |
subtreeDepth() |
calculatePromise, getClassVotes, getDescription, getObservedClassDistribution, observedClassDistributionIsPure
copy, copy, measureByteSize, measureByteSize, toString
protected InstanceConditionalTest splitTest
protected AutoExpandVector<HoeffdingTree.Node> children
public HoeffdingTree.SplitNode(InstanceConditionalTest splitTest, double[] classObservations, int size)
public HoeffdingTree.SplitNode(InstanceConditionalTest splitTest, double[] classObservations)
public int calcByteSize()
calcByteSize
in class HoeffdingTree.Node
public int calcByteSizeIncludingSubtree()
calcByteSizeIncludingSubtree
in class HoeffdingTree.Node
public int numChildren()
public void setChild(int index, HoeffdingTree.Node child)
public HoeffdingTree.Node getChild(int index)
public int instanceChildIndex(weka.core.Instance inst)
public boolean isLeaf()
isLeaf
in class HoeffdingTree.Node
public HoeffdingTree.FoundNode filterInstanceToLeaf(weka.core.Instance inst, HoeffdingTree.SplitNode parent, int parentBranch)
filterInstanceToLeaf
in class HoeffdingTree.Node
public void describeSubtree(HoeffdingTree ht, StringBuilder out, int indent)
describeSubtree
in class HoeffdingTree.Node
public int subtreeDepth()
subtreeDepth
in class HoeffdingTree.Node
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.