Package moa.classifiers.trees
Class HoeffdingOptionTree.SplitNode
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.HoeffdingOptionTree.Node
-
- moa.classifiers.trees.HoeffdingOptionTree.SplitNode
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Enclosing class:
- HoeffdingOptionTree
public static class HoeffdingOptionTree.SplitNode extends HoeffdingOptionTree.Node
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoExpandVector<HoeffdingOptionTree.Node>
children
protected HoeffdingOptionTree.Node
nextOption
protected int
optionCount
protected HoeffdingOptionTree.SplitNode
parent
protected InstanceConditionalTest
splitTest
-
Fields inherited from class moa.classifiers.trees.HoeffdingOptionTree.Node
observedClassDistribution
-
-
Constructor Summary
Constructors Constructor Description SplitNode(InstanceConditionalTest splitTest, double[] classObservations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcByteSize()
int
calcByteSizeIncludingSubtree()
double
computeMeritOfExistingSplit(SplitCriterion splitCriterion, double[] preDist)
void
describeSubtree(HoeffdingOptionTree ht, StringBuilder out, int indent)
void
filterInstanceToLeaves(Instance inst, HoeffdingOptionTree.SplitNode myparent, int parentBranch, List<HoeffdingOptionTree.FoundNode> foundNodes, boolean updateSplitterCounts)
HoeffdingOptionTree.Node
getChild(int index)
int
getHeadOptionCount()
int
instanceChildIndex(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)
-
Methods inherited from class moa.classifiers.trees.HoeffdingOptionTree.Node
calculatePromise, filterInstanceToLeaves, getClassVotes, getDescription, getObservedClassDistribution, observedClassDistributionIsPure
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
splitTest
protected InstanceConditionalTest splitTest
-
parent
protected HoeffdingOptionTree.SplitNode parent
-
nextOption
protected HoeffdingOptionTree.Node nextOption
-
optionCount
protected int optionCount
-
children
protected AutoExpandVector<HoeffdingOptionTree.Node> children
-
-
Constructor Detail
-
SplitNode
public SplitNode(InstanceConditionalTest splitTest, double[] classObservations)
-
-
Method Detail
-
calcByteSize
public int calcByteSize()
- Overrides:
calcByteSize
in classHoeffdingOptionTree.Node
-
calcByteSizeIncludingSubtree
public int calcByteSizeIncludingSubtree()
- Overrides:
calcByteSizeIncludingSubtree
in classHoeffdingOptionTree.Node
-
numChildren
public int numChildren()
-
setChild
public void setChild(int index, HoeffdingOptionTree.Node child)
-
getChild
public HoeffdingOptionTree.Node getChild(int index)
-
instanceChildIndex
public int instanceChildIndex(Instance inst)
-
isLeaf
public boolean isLeaf()
- Overrides:
isLeaf
in classHoeffdingOptionTree.Node
-
filterInstanceToLeaves
public void filterInstanceToLeaves(Instance inst, HoeffdingOptionTree.SplitNode myparent, int parentBranch, List<HoeffdingOptionTree.FoundNode> foundNodes, boolean updateSplitterCounts)
- Overrides:
filterInstanceToLeaves
in classHoeffdingOptionTree.Node
-
describeSubtree
public void describeSubtree(HoeffdingOptionTree ht, StringBuilder out, int indent)
- Overrides:
describeSubtree
in classHoeffdingOptionTree.Node
-
subtreeDepth
public int subtreeDepth()
- Overrides:
subtreeDepth
in classHoeffdingOptionTree.Node
-
computeMeritOfExistingSplit
public double computeMeritOfExistingSplit(SplitCriterion splitCriterion, double[] preDist)
-
updateOptionCount
public void updateOptionCount(HoeffdingOptionTree.SplitNode source, HoeffdingOptionTree hot)
-
updateOptionCountBelow
public void updateOptionCountBelow(int delta, HoeffdingOptionTree hot)
-
getHeadOptionCount
public int getHeadOptionCount()
-
-