public class Iadem2.LeafNodeWeightedVote extends Iadem2.LeafNodeNB
Modifier and Type | Field and Description |
---|---|
protected AbstractChangeDetector |
majorityClassError |
protected AbstractChangeDetector |
naiveBayesError |
naiveBayesLimit
allAttUsed, instNodeCountSinceReal, instNodeCountSinceVirtual, instSeenSinceLastSplitAttempt, instTreeCountSinceReal, split, virtualChildren
classValueDist, parent, tree
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
double[] |
getClassVotes(Instance instance) |
Iadem2.Node |
learnFromInstance(Instance inst) |
getNaiveBayesPrediction
attemptToSplit, createVirtualNodes, doSplit, getBestSplitSuggestion, getBestSplitSuggestionIADEM, getFastSplitSuggestion, getInstNodeCountSinceVirtual, getInstSeenSinceLastSplitAttempt, getLeaves, getMajorityClassVotes, getNumberOfNodes, getSubtreeNodeCount, getTree, getVirtualChildren, hasInformationToSplit, isAllAttUsed, nominalAttUsed, setInstSeenSinceLastSplitAttempt, setSplit, setVirtualChildren
getChildCount, getClassValueDist, getParent, setClassValueDist, setParent, setTree
protected AbstractChangeDetector naiveBayesError
protected AbstractChangeDetector majorityClassError
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)
public double[] getClassVotes(Instance instance)
getClassVotes
in class Iadem2.LeafNodeNB
public Iadem2.Node learnFromInstance(Instance inst)
learnFromInstance
in class Iadem2.LeafNode
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.