Package moa.classifiers.trees.iadem
Class Iadem3.AdaptiveLeafNodeNBAdaptive
- java.lang.Object
-
- moa.classifiers.trees.iadem.Iadem2.Node
-
- moa.classifiers.trees.iadem.Iadem2.LeafNode
-
- moa.classifiers.trees.iadem.Iadem3.AdaptiveLeafNode
-
- moa.classifiers.trees.iadem.Iadem3.AdaptiveLeafNodeNB
-
- moa.classifiers.trees.iadem.Iadem3.AdaptiveLeafNodeNBAdaptive
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Iadem3.AdaptiveLeafNodeWeightedVote
- Enclosing class:
- Iadem3
public class Iadem3.AdaptiveLeafNodeNBAdaptive extends Iadem3.AdaptiveLeafNodeNB
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractChangeDetector
majorityClassError
protected AbstractChangeDetector
naiveBayesError
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem3.AdaptiveLeafNodeNB
limitNaiveBayes
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem3.AdaptiveLeafNode
estimator
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem2.LeafNode
allAttUsed, instNodeCountSinceReal, instNodeCountSinceVirtual, instSeenSinceLastSplitAttempt, instTreeCountSinceReal, split, virtualChildren
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem2.Node
classValueDist, parent, tree
-
-
Constructor Summary
Constructors Constructor Description AdaptiveLeafNodeNBAdaptive(Iadem3 tree, Iadem2.Node parent, long instancesProcessedByTheTree, long instancesProcessedByThisLeaf, double[] classDist, IademNumericAttributeObserver observadorContinuos, int naiveBayesLimit, boolean onlyMultiwayTest, boolean onlyBinaryTest, AbstractChangeDetector estimator, Instance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getClassVotes(Instance instance)
Iadem2.Node
learnFromInstance(Instance inst)
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem3.AdaptiveLeafNodeNB
getNaiveBayesPrediction
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem3.AdaptiveLeafNode
attemptToSplit, createVirtualNodes, doSplit, restartVariablesAtDrift
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem2.LeafNode
getBestSplitSuggestion, getBestSplitSuggestionIADEM, getFastSplitSuggestion, getInstNodeCountSinceVirtual, getInstSeenSinceLastSplitAttempt, getLeaves, getMajorityClassVotes, getNumberOfNodes, getSubtreeNodeCount, getTree, getVirtualChildren, hasInformationToSplit, isAllAttUsed, nominalAttUsed, setInstSeenSinceLastSplitAttempt, setSplit, setVirtualChildren
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem2.Node
getChildCount, getClassValueDist, getParent, setClassValueDist, setParent, setTree
-
-
-
-
Field Detail
-
naiveBayesError
protected AbstractChangeDetector naiveBayesError
-
majorityClassError
protected AbstractChangeDetector majorityClassError
-
-
Constructor Detail
-
AdaptiveLeafNodeNBAdaptive
public AdaptiveLeafNodeNBAdaptive(Iadem3 tree, Iadem2.Node parent, long instancesProcessedByTheTree, long instancesProcessedByThisLeaf, double[] classDist, IademNumericAttributeObserver observadorContinuos, int naiveBayesLimit, boolean onlyMultiwayTest, boolean onlyBinaryTest, AbstractChangeDetector estimator, Instance instance)
-
-
Method Detail
-
getClassVotes
public double[] getClassVotes(Instance instance)
- Overrides:
getClassVotes
in classIadem3.AdaptiveLeafNodeNB
-
learnFromInstance
public Iadem2.Node learnFromInstance(Instance inst)
- Overrides:
learnFromInstance
in classIadem3.AdaptiveLeafNode
-
-