Package moa.classifiers.trees
Class HoeffdingTreeClassifLeaves.LearningNodeClassifier
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.HoeffdingTree.Node
-
- moa.classifiers.trees.HoeffdingTree.LearningNode
-
- moa.classifiers.trees.HoeffdingTree.ActiveLearningNode
-
- moa.classifiers.trees.HoeffdingTreeClassifLeaves.LearningNodeClassifier
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
MultilabelHoeffdingTree.MultilabelLearningNodeClassifier
- Enclosing class:
- HoeffdingTreeClassifLeaves
public class HoeffdingTreeClassifLeaves.LearningNodeClassifier extends HoeffdingTree.ActiveLearningNode
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Classifier
classifier
-
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 LearningNodeClassifier(double[] initialClassObservations)
LearningNodeClassifier(double[] initialClassObservations, Classifier cl, HoeffdingTreeClassifLeaves ht)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableAttribute(int attIndex)
Classifier
getClassifier()
double[]
getClassVotes(Instance inst, HoeffdingTree ht)
void
learnFromInstance(Instance inst, HoeffdingTree ht)
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.ActiveLearningNode
calcByteSize, 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
-
-
-
-
Field Detail
-
classifier
protected Classifier classifier
-
-
Constructor Detail
-
LearningNodeClassifier
public LearningNodeClassifier(double[] initialClassObservations)
-
LearningNodeClassifier
public LearningNodeClassifier(double[] initialClassObservations, Classifier cl, HoeffdingTreeClassifLeaves ht)
-
-
Method Detail
-
getClassVotes
public double[] getClassVotes(Instance inst, HoeffdingTree ht)
- Overrides:
getClassVotes
in classHoeffdingTree.Node
-
disableAttribute
public void disableAttribute(int attIndex)
- Overrides:
disableAttribute
in classHoeffdingTree.ActiveLearningNode
-
learnFromInstance
public void learnFromInstance(Instance inst, HoeffdingTree ht)
- Overrides:
learnFromInstance
in classHoeffdingTree.ActiveLearningNode
-
getClassifier
public Classifier getClassifier()
-
-