Package moa.classifiers.trees
Class HoeffdingAdaptiveTree.AdaSplitNode
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.HoeffdingTree.Node
-
- moa.classifiers.trees.HoeffdingTree.SplitNode
-
- moa.classifiers.trees.HoeffdingAdaptiveTree.AdaSplitNode
-
- All Implemented Interfaces:
Serializable
,HoeffdingAdaptiveTree.NewNode
,MOAObject
- Enclosing class:
- HoeffdingAdaptiveTree
public static class HoeffdingAdaptiveTree.AdaSplitNode extends HoeffdingTree.SplitNode implements HoeffdingAdaptiveTree.NewNode
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected HoeffdingTree.Node
alternateTree
protected Random
classifierRandom
boolean
ErrorChange
protected ADWIN
estimationErrorWeight
protected int
randomSeed
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.SplitNode
children, splitTest
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.Node
observedClassDistribution
-
-
Constructor Summary
Constructors Constructor Description AdaSplitNode(InstanceConditionalTest splitTest, double[] classObservations)
AdaSplitNode(InstanceConditionalTest splitTest, double[] classObservations, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcByteSizeIncludingSubtree()
void
filterInstanceToLeaves(Instance inst, HoeffdingTree.SplitNode myparent, int parentBranch, List<HoeffdingTree.FoundNode> foundNodes, boolean updateSplitterCounts)
double
getErrorEstimation()
double
getErrorWidth()
boolean
isNullError()
void
killTreeChilds(HoeffdingAdaptiveTree ht)
void
learnFromInstance(Instance inst, HoeffdingAdaptiveTree ht, HoeffdingTree.SplitNode parent, int parentBranch)
int
numberLeaves()
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.SplitNode
calcByteSize, describeSubtree, filterInstanceToLeaf, getChild, getChildren, getObservedClassDistributionAtLeavesReachableThroughThisNode, getSplitTest, instanceChildIndex, isLeaf, numChildren, setChild, subtreeDepth
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.Node
calculatePromise, getClassVotes, getDescription, getObservedClassDistribution, observedClassDistributionIsPure
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
alternateTree
protected HoeffdingTree.Node alternateTree
-
estimationErrorWeight
protected ADWIN estimationErrorWeight
-
ErrorChange
public boolean ErrorChange
-
randomSeed
protected int randomSeed
-
classifierRandom
protected Random classifierRandom
-
-
Constructor Detail
-
AdaSplitNode
public AdaSplitNode(InstanceConditionalTest splitTest, double[] classObservations, int size)
-
AdaSplitNode
public AdaSplitNode(InstanceConditionalTest splitTest, double[] classObservations)
-
-
Method Detail
-
calcByteSizeIncludingSubtree
public int calcByteSizeIncludingSubtree()
- Overrides:
calcByteSizeIncludingSubtree
in classHoeffdingTree.SplitNode
-
numberLeaves
public int numberLeaves()
- Specified by:
numberLeaves
in interfaceHoeffdingAdaptiveTree.NewNode
-
getErrorEstimation
public double getErrorEstimation()
- Specified by:
getErrorEstimation
in interfaceHoeffdingAdaptiveTree.NewNode
-
getErrorWidth
public double getErrorWidth()
- Specified by:
getErrorWidth
in interfaceHoeffdingAdaptiveTree.NewNode
-
isNullError
public boolean isNullError()
- Specified by:
isNullError
in interfaceHoeffdingAdaptiveTree.NewNode
-
learnFromInstance
public void learnFromInstance(Instance inst, HoeffdingAdaptiveTree ht, HoeffdingTree.SplitNode parent, int parentBranch)
- Specified by:
learnFromInstance
in interfaceHoeffdingAdaptiveTree.NewNode
-
killTreeChilds
public void killTreeChilds(HoeffdingAdaptiveTree ht)
- Specified by:
killTreeChilds
in interfaceHoeffdingAdaptiveTree.NewNode
-
filterInstanceToLeaves
public void filterInstanceToLeaves(Instance inst, HoeffdingTree.SplitNode myparent, int parentBranch, List<HoeffdingTree.FoundNode> foundNodes, boolean updateSplitterCounts)
- Specified by:
filterInstanceToLeaves
in interfaceHoeffdingAdaptiveTree.NewNode
-
-