public class Iadem2.LeafNodeNBKirkby extends Iadem2.LeafNodeNB
Modifier and Type | Field and Description |
---|---|
protected int |
majorityClassError |
protected int |
naiveBayesError |
naiveBayesLimit
allAttUsed, instNodeCountSinceReal, instNodeCountSinceVirtual, instSeenSinceLastSplitAttempt, instTreeCountSinceReal, split, virtualChildren
classValueDist, parent, tree
Constructor and 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) |
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 int naiveBayesError
protected int majorityClassError
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)
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.