public static class FIMTDD.LeafNode extends FIMTDD.Node
Modifier and Type | Field and Description |
---|---|
protected double |
examplesSeenAtLastSplitEvaluation |
FIMTDD.FIMTDDPerceptron |
learningModel |
alternateTree, attributeObservers, changeDetection, examplesSeen, ID, originalNode, parent, PHmin, PHsum, sumOfAbsErrors, sumOfSquares, sumOfValues, weightSeenAtLastSplitEvaluation
Constructor and Description |
---|
FIMTDD.LeafNode(FIMTDD tree)
Create a new LeafNode
|
Modifier and Type | Method and Description |
---|---|
void |
checkForSplit(FIMTDD tree) |
void |
describeSubtree(FIMTDD tree,
StringBuilder out,
int indent) |
double |
examplesSeenAtLastSplitEvaluation() |
AttributeSplitSuggestion[] |
getBestSplitSuggestions(SplitCriterion criterion,
FIMTDD tree)
Return the best split suggestions for this node using the given split criteria
|
double[] |
getClassVotes(weka.core.Instance inst,
FIMTDD tree) |
double |
getPrediction(weka.core.Instance inst,
FIMTDD tree) |
double |
getPredictionModel(weka.core.Instance inst,
FIMTDD tree)
Retrieve the class votes using the perceptron learner
|
double |
getPredictionTargetMean(weka.core.Instance inst,
FIMTDD tree) |
void |
learnFromInstance(weka.core.Instance inst,
FIMTDD tree,
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 |
setExamplesSeenAtLastSplitEvaluation(double seen) |
calcByteSize, calcByteSizeIncludingSubtree, copyStatistics, countLeaves, disableChangeDetection, examplesSeen, getDescription, getParent, isLeaf, PageHinckleyTest, restartChangeDetection, setParent
copy, copy, measureByteSize, measureByteSize, toString
public FIMTDD.FIMTDDPerceptron learningModel
protected double examplesSeenAtLastSplitEvaluation
public FIMTDD.LeafNode(FIMTDD tree)
public double examplesSeenAtLastSplitEvaluation()
public void setExamplesSeenAtLastSplitEvaluation(double seen)
public void learnFromInstance(weka.core.Instance inst, FIMTDD tree, boolean growthAllowed)
public AttributeSplitSuggestion[] getBestSplitSuggestions(SplitCriterion criterion, FIMTDD tree)
public double getPredictionModel(weka.core.Instance inst, FIMTDD tree)
public double getPredictionTargetMean(weka.core.Instance inst, FIMTDD tree)
public double getPrediction(weka.core.Instance inst, FIMTDD tree)
getPrediction
in class FIMTDD.Node
public double[] getClassVotes(weka.core.Instance inst, FIMTDD tree)
public void checkForSplit(FIMTDD tree)
public void describeSubtree(FIMTDD tree, StringBuilder out, int indent)
describeSubtree
in class FIMTDD.Node
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.