Package moa.classifiers.trees.iadem
Class Iadem2.LeafNodeNBKirkby
- java.lang.Object
-
- moa.classifiers.trees.iadem.Iadem2.Node
-
- moa.classifiers.trees.iadem.Iadem2.LeafNode
-
- moa.classifiers.trees.iadem.Iadem2.LeafNodeNB
-
- moa.classifiers.trees.iadem.Iadem2.LeafNodeNBKirkby
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Iadem2
public class Iadem2.LeafNodeNBKirkby extends Iadem2.LeafNodeNB
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
majorityClassError
protected int
naiveBayesError
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem2.LeafNodeNB
naiveBayesLimit
-
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 LeafNodeNBKirkby(Iadem2 tree, Iadem2.Node parent, long instancesProcessedByTheTree, long instancesProcessedByThisLeaf, double[] classDist, IademNumericAttributeObserver numericAttClassObserver, 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.Iadem2.LeafNodeNB
getNaiveBayesPrediction
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem2.LeafNode
attemptToSplit, createVirtualNodes, doSplit, 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
-
-
-
-
Constructor Detail
-
LeafNodeNBKirkby
public LeafNodeNBKirkby(Iadem2 tree, Iadem2.Node parent, long instancesProcessedByTheTree, long instancesProcessedByThisLeaf, double[] classDist, IademNumericAttributeObserver numericAttClassObserver, int naiveBayesLimit, boolean onlyMultiwayTest, boolean onlyBinaryTest, AbstractChangeDetector estimator, Instance instance)
-
-
Method Detail
-
getClassVotes
public double[] getClassVotes(Instance instance)
- Overrides:
getClassVotes
in classIadem2.LeafNodeNB
-
learnFromInstance
public Iadem2.Node learnFromInstance(Instance inst)
- Overrides:
learnFromInstance
in classIadem2.LeafNode
-
-