public static class HoeffdingOptionTree.SplitNode extends HoeffdingOptionTree.Node
Modifier and Type | Field and Description |
---|---|
protected AutoExpandVector<HoeffdingOptionTree.Node> |
children |
protected HoeffdingOptionTree.Node |
nextOption |
protected int |
optionCount |
protected HoeffdingOptionTree.SplitNode |
parent |
protected InstanceConditionalTest |
splitTest |
observedClassDistribution
Constructor and Description |
---|
HoeffdingOptionTree.SplitNode(InstanceConditionalTest splitTest,
double[] classObservations) |
Modifier and Type | Method and Description |
---|---|
int |
calcByteSize() |
int |
calcByteSizeIncludingSubtree() |
double |
computeMeritOfExistingSplit(SplitCriterion splitCriterion,
double[] preDist) |
void |
describeSubtree(HoeffdingOptionTree ht,
StringBuilder out,
int indent) |
void |
filterInstanceToLeaves(weka.core.Instance inst,
HoeffdingOptionTree.SplitNode myparent,
int parentBranch,
List<HoeffdingOptionTree.FoundNode> foundNodes,
boolean updateSplitterCounts) |
HoeffdingOptionTree.Node |
getChild(int index) |
int |
getHeadOptionCount() |
int |
instanceChildIndex(weka.core.Instance inst) |
boolean |
isLeaf() |
int |
numChildren() |
void |
setChild(int index,
HoeffdingOptionTree.Node child) |
int |
subtreeDepth() |
void |
updateOptionCount(HoeffdingOptionTree.SplitNode source,
HoeffdingOptionTree hot) |
void |
updateOptionCountBelow(int delta,
HoeffdingOptionTree hot) |
calculatePromise, filterInstanceToLeaves, getClassVotes, getDescription, getObservedClassDistribution, observedClassDistributionIsPure
copy, copy, measureByteSize, measureByteSize, toString
protected InstanceConditionalTest splitTest
protected HoeffdingOptionTree.SplitNode parent
protected HoeffdingOptionTree.Node nextOption
protected int optionCount
protected AutoExpandVector<HoeffdingOptionTree.Node> children
public HoeffdingOptionTree.SplitNode(InstanceConditionalTest splitTest, double[] classObservations)
public int calcByteSize()
calcByteSize
in class HoeffdingOptionTree.Node
public int calcByteSizeIncludingSubtree()
calcByteSizeIncludingSubtree
in class HoeffdingOptionTree.Node
public int numChildren()
public void setChild(int index, HoeffdingOptionTree.Node child)
public HoeffdingOptionTree.Node getChild(int index)
public int instanceChildIndex(weka.core.Instance inst)
public boolean isLeaf()
isLeaf
in class HoeffdingOptionTree.Node
public void filterInstanceToLeaves(weka.core.Instance inst, HoeffdingOptionTree.SplitNode myparent, int parentBranch, List<HoeffdingOptionTree.FoundNode> foundNodes, boolean updateSplitterCounts)
filterInstanceToLeaves
in class HoeffdingOptionTree.Node
public void describeSubtree(HoeffdingOptionTree ht, StringBuilder out, int indent)
describeSubtree
in class HoeffdingOptionTree.Node
public int subtreeDepth()
subtreeDepth
in class HoeffdingOptionTree.Node
public double computeMeritOfExistingSplit(SplitCriterion splitCriterion, double[] preDist)
public void updateOptionCount(HoeffdingOptionTree.SplitNode source, HoeffdingOptionTree hot)
public void updateOptionCountBelow(int delta, HoeffdingOptionTree hot)
public int getHeadOptionCount()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.