public static class FIMTDD.LeafNode extends FIMTDD.Node
Modifier and Type | Field and Description |
---|---|
protected AutoExpandVector<FIMTDDNumericAttributeClassObserver> |
attributeObservers |
protected double |
examplesSeenAtLastSplitEvaluation |
FIMTDD.FIMTDDPerceptron |
learningModel |
alternateTree, changeDetection, examplesSeen, ID, originalNode, parent, sumOfAbsErrors, sumOfSquares, sumOfValues, tree
Constructor and Description |
---|
LeafNode(FIMTDD tree)
Create a new LeafNode
|
Modifier and Type | Method and Description |
---|---|
void |
checkForSplit(FIMTDD tree) |
void |
describeSubtree(StringBuilder out,
int indent) |
AttributeSplitSuggestion[] |
getBestSplitSuggestions(SplitCriterion criterion)
Return the best split suggestions for this node using the given split criteria
|
int |
getChildIndex(FIMTDD.Node child) |
int |
getNumSubtrees() |
double |
getPrediction(Instance inst) |
double |
getPredictionModel(Instance inst)
Retrieve the class votes using the perceptron learner
|
double |
getPredictionTargetMean(Instance inst) |
void |
learnFromInstance(Instance inst,
boolean growthAllowed)
Method to learn from an instance that passes the new instance to the perceptron learner,
and also prevents the class value from being truncated to an int when it is passed to the
attribute observer
|
void |
setChild(int parentBranch,
FIMTDD.Node node) |
protected boolean |
skipInLevelCount() |
calcByteSize, copyStatistics, disableChangeDetection, getDescription, getLevel, getParent, restartChangeDetection, setParent
copy, copy, measureByteSize, measureByteSize, toString
public FIMTDD.FIMTDDPerceptron learningModel
protected AutoExpandVector<FIMTDDNumericAttributeClassObserver> attributeObservers
protected double examplesSeenAtLastSplitEvaluation
public LeafNode(FIMTDD tree)
public void setChild(int parentBranch, FIMTDD.Node node)
setChild
in class FIMTDD.Node
public int getChildIndex(FIMTDD.Node child)
getChildIndex
in class FIMTDD.Node
public int getNumSubtrees()
getNumSubtrees
in class FIMTDD.Node
protected boolean skipInLevelCount()
skipInLevelCount
in class FIMTDD.Node
public void learnFromInstance(Instance inst, boolean growthAllowed)
public AttributeSplitSuggestion[] getBestSplitSuggestions(SplitCriterion criterion)
public double getPredictionModel(Instance inst)
public double getPredictionTargetMean(Instance inst)
public double getPrediction(Instance inst)
getPrediction
in class FIMTDD.Node
public void checkForSplit(FIMTDD tree)
public void describeSubtree(StringBuilder out, int indent)
describeSubtree
in class FIMTDD.Node
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.