Package moa.classifiers.trees
Class HoeffdingAdaptiveTree.AdaLearningNode
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.HoeffdingTree.Node
-
- moa.classifiers.trees.HoeffdingTree.LearningNode
-
- moa.classifiers.trees.HoeffdingTree.ActiveLearningNode
-
- moa.classifiers.trees.HoeffdingTree.LearningNodeNB
-
- moa.classifiers.trees.HoeffdingTree.LearningNodeNBAdaptive
-
- moa.classifiers.trees.HoeffdingAdaptiveTree.AdaLearningNode
-
- All Implemented Interfaces:
Serializable
,HoeffdingAdaptiveTree.NewNode
,MOAObject
- Direct Known Subclasses:
HoeffdingAdaptiveTreeClassifLeaves.LearningNodeHATClassifier
- Enclosing class:
- HoeffdingAdaptiveTree
public static class HoeffdingAdaptiveTree.AdaLearningNode extends HoeffdingTree.LearningNodeNBAdaptive implements HoeffdingAdaptiveTree.NewNode
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Random
classifierRandom
boolean
ErrorChange
protected ADWIN
estimationErrorWeight
protected int
randomSeed
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.LearningNodeNBAdaptive
mcCorrectWeight, nbCorrectWeight
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.ActiveLearningNode
attributeObservers, isInitialized, weightSeenAtLastSplitEvaluation
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.Node
observedClassDistribution
-
-
Constructor Summary
Constructors Constructor Description AdaLearningNode(double[] initialClassObservations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcByteSize()
void
filterInstanceToLeaves(Instance inst, HoeffdingTree.SplitNode splitparent, int parentBranch, List<HoeffdingTree.FoundNode> foundNodes, boolean updateSplitterCounts)
double[]
getClassVotes(Instance inst, HoeffdingTree ht)
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.LearningNodeNBAdaptive
learnFromInstance
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.LearningNodeNB
disableAttribute
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.ActiveLearningNode
getBestSplitSuggestions, getWeightSeen, getWeightSeenAtLastSplitEvaluation, setWeightSeenAtLastSplitEvaluation
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.Node
calcByteSizeIncludingSubtree, calculatePromise, describeSubtree, filterInstanceToLeaf, getDescription, getObservedClassDistribution, getObservedClassDistributionAtLeavesReachableThroughThisNode, isLeaf, observedClassDistributionIsPure, subtreeDepth
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Method Detail
-
calcByteSize
public int calcByteSize()
- Overrides:
calcByteSize
in classHoeffdingTree.ActiveLearningNode
-
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
-
killTreeChilds
public void killTreeChilds(HoeffdingAdaptiveTree ht)
- Specified by:
killTreeChilds
in interfaceHoeffdingAdaptiveTree.NewNode
-
learnFromInstance
public void learnFromInstance(Instance inst, HoeffdingAdaptiveTree ht, HoeffdingTree.SplitNode parent, int parentBranch)
- Specified by:
learnFromInstance
in interfaceHoeffdingAdaptiveTree.NewNode
-
getClassVotes
public double[] getClassVotes(Instance inst, HoeffdingTree ht)
- Overrides:
getClassVotes
in classHoeffdingTree.LearningNodeNBAdaptive
-
filterInstanceToLeaves
public void filterInstanceToLeaves(Instance inst, HoeffdingTree.SplitNode splitparent, int parentBranch, List<HoeffdingTree.FoundNode> foundNodes, boolean updateSplitterCounts)
- Specified by:
filterInstanceToLeaves
in interfaceHoeffdingAdaptiveTree.NewNode
-
-