public class Iadem2.LeafNodeNB extends Iadem2.LeafNode
Modifier and Type | Field and Description |
---|---|
protected int |
naiveBayesLimit |
allAttUsed, instNodeCountSinceReal, instNodeCountSinceVirtual, instSeenSinceLastSplitAttempt, instTreeCountSinceReal, split, virtualChildren
classValueDist, parent, tree
Constructor and Description |
---|
LeafNodeNB(Iadem2 tree,
Iadem2.Node parent,
long instTreeCountSinceVirtual,
long instNodeCountSinceVirtual,
double[] initialClassVotes,
IademNumericAttributeObserver numericAttClassObserver,
int naiveBayesLimit,
boolean onlyMultiwayTest,
boolean onlyBinaryTest,
Instance instance) |
Modifier and Type | Method and Description |
---|---|
double[] |
getClassVotes(Instance inst) |
protected double[] |
getNaiveBayesPrediction(Instance obs) |
attemptToSplit, createVirtualNodes, doSplit, getBestSplitSuggestion, getBestSplitSuggestionIADEM, getFastSplitSuggestion, getInstNodeCountSinceVirtual, getInstSeenSinceLastSplitAttempt, getLeaves, getMajorityClassVotes, getNumberOfNodes, getSubtreeNodeCount, getTree, getVirtualChildren, hasInformationToSplit, isAllAttUsed, learnFromInstance, nominalAttUsed, setInstSeenSinceLastSplitAttempt, setSplit, setVirtualChildren
getChildCount, getClassValueDist, getParent, setClassValueDist, setParent, setTree
public LeafNodeNB(Iadem2 tree, Iadem2.Node parent, long instTreeCountSinceVirtual, long instNodeCountSinceVirtual, double[] initialClassVotes, IademNumericAttributeObserver numericAttClassObserver, int naiveBayesLimit, boolean onlyMultiwayTest, boolean onlyBinaryTest, Instance instance)
public double[] getClassVotes(Instance inst)
getClassVotes
in class Iadem2.LeafNode
protected double[] getNaiveBayesPrediction(Instance obs)
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.