Package moa.classifiers.trees
Class HoeffdingTree.ActiveLearningNode
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.HoeffdingTree.Node
-
- moa.classifiers.trees.HoeffdingTree.LearningNode
-
- moa.classifiers.trees.HoeffdingTree.ActiveLearningNode
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
ARFHoeffdingTree.RandomLearningNode
,HoeffdingTree.LearningNodeNB
,HoeffdingTreeClassifLeaves.LearningNodeClassifier
,LimAttHoeffdingTree.LimAttLearningNode
,RandomHoeffdingTree.RandomLearningNode
,RuleActiveLearningNode
- Enclosing class:
- HoeffdingTree
public static class HoeffdingTree.ActiveLearningNode extends HoeffdingTree.LearningNode
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoExpandVector<AttributeClassObserver>
attributeObservers
protected boolean
isInitialized
protected double
weightSeenAtLastSplitEvaluation
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.Node
observedClassDistribution
-
-
Constructor Summary
Constructors Constructor Description ActiveLearningNode(double[] initialClassObservations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcByteSize()
void
disableAttribute(int attIndex)
AttributeSplitSuggestion[]
getBestSplitSuggestions(SplitCriterion criterion, HoeffdingTree ht)
double
getWeightSeen()
double
getWeightSeenAtLastSplitEvaluation()
void
learnFromInstance(Instance inst, HoeffdingTree ht)
void
setWeightSeenAtLastSplitEvaluation(double weight)
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.Node
calcByteSizeIncludingSubtree, calculatePromise, describeSubtree, filterInstanceToLeaf, getClassVotes, getDescription, getObservedClassDistribution, getObservedClassDistributionAtLeavesReachableThroughThisNode, isLeaf, observedClassDistributionIsPure, subtreeDepth
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
weightSeenAtLastSplitEvaluation
protected double weightSeenAtLastSplitEvaluation
-
attributeObservers
protected AutoExpandVector<AttributeClassObserver> attributeObservers
-
isInitialized
protected boolean isInitialized
-
-
Method Detail
-
calcByteSize
public int calcByteSize()
- Overrides:
calcByteSize
in classHoeffdingTree.Node
-
learnFromInstance
public void learnFromInstance(Instance inst, HoeffdingTree ht)
- Specified by:
learnFromInstance
in classHoeffdingTree.LearningNode
-
getWeightSeen
public double getWeightSeen()
-
getWeightSeenAtLastSplitEvaluation
public double getWeightSeenAtLastSplitEvaluation()
-
setWeightSeenAtLastSplitEvaluation
public void setWeightSeenAtLastSplitEvaluation(double weight)
-
getBestSplitSuggestions
public AttributeSplitSuggestion[] getBestSplitSuggestions(SplitCriterion criterion, HoeffdingTree ht)
-
disableAttribute
public void disableAttribute(int attIndex)
-
-