Package moa.classifiers.trees.iadem
Class Iadem2.LeafNodeWeightedVote
- 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.LeafNodeWeightedVote
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Iadem2
public class Iadem2.LeafNodeWeightedVote extends Iadem2.LeafNodeNB
- 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.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 LeafNodeWeightedVote(Iadem2 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.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
-
-
-
-
Field Detail
-
naiveBayesError
protected AbstractChangeDetector naiveBayesError
-
majorityClassError
protected AbstractChangeDetector majorityClassError
-
-
Constructor Detail
-
LeafNodeWeightedVote
public LeafNodeWeightedVote(Iadem2 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 classIadem2.LeafNodeNB
-
learnFromInstance
public Iadem2.Node learnFromInstance(Instance inst)
- Overrides:
learnFromInstance
in classIadem2.LeafNode
-
-