public static class FIMTDD.FIMTDDActiveLearningNode extends HoeffdingTree.ActiveLearningNode implements FIMTDD.AdaptationCompatibleNode
Modifier and Type | Field and Description |
---|---|
FIMTDD.FIMTDDPerceptron |
learningModel |
protected DoubleVector |
nodeStatistics |
protected HoeffdingTree.Node |
parent |
protected double |
PHmT |
protected double |
PHMT |
attributeObservers, isInitialized, weightSeenAtLastSplitEvaluation
observedClassDistribution
Constructor and Description |
---|
FIMTDD.FIMTDDActiveLearningNode(double[] initialClassObservations)
Create a new FIMTDDActiveLearningNode
|
Modifier and Type | Method and Description |
---|---|
AttributeSplitSuggestion[] |
getBestSplitSuggestions(SplitCriterion criterion,
HoeffdingTree ht) |
double[] |
getClassVotes(weka.core.Instance inst,
HoeffdingTree ht) |
double |
getError(weka.core.Instance inst)
Return the error for a given instance
|
HoeffdingTree.Node |
getParent()
Return the parent node
|
double |
getPHError(weka.core.Instance inst)
A method returning the Page-Hinckley error produced on this instance in the leaf node,
which will then be back-propagated back through the tree to allow the
Page-Hinckley change detection tests to be updated
|
double |
getPrediction(weka.core.Instance inst,
HoeffdingTree ht)
Retrieve the class votes using the perceptron learner
|
double |
getPredictionTargetMean(weka.core.Instance inst,
HoeffdingTree ht)
Retrieve the class votes using the target mean
|
double |
getSquaredError()
Returns the squared error, for use in determining if an alternate tree is performing better than an original
tree, or if the alternate tree should be deleted
|
double |
getWeightSeen() |
void |
learnFromInstance(weka.core.Instance inst,
HoeffdingTree ht) |
void |
setParent(HoeffdingTree.Node parent)
Set the parent node
|
calcByteSize, disableAttribute, getWeightSeenAtLastSplitEvaluation, setWeightSeenAtLastSplitEvaluation
calcByteSizeIncludingSubtree, calculatePromise, describeSubtree, filterInstanceToLeaf, getDescription, getObservedClassDistribution, isLeaf, observedClassDistributionIsPure, subtreeDepth
copy, copy, measureByteSize, measureByteSize, toString
public FIMTDD.FIMTDDPerceptron learningModel
protected HoeffdingTree.Node parent
protected DoubleVector nodeStatistics
protected double PHmT
protected double PHMT
public FIMTDD.FIMTDDActiveLearningNode(double[] initialClassObservations)
public void setParent(HoeffdingTree.Node parent)
setParent
in interface FIMTDD.AdaptationCompatibleNode
public HoeffdingTree.Node getParent()
getParent
in interface FIMTDD.AdaptationCompatibleNode
public double getWeightSeen()
getWeightSeen
in class HoeffdingTree.ActiveLearningNode
public void learnFromInstance(weka.core.Instance inst, HoeffdingTree ht)
learnFromInstance
in class HoeffdingTree.ActiveLearningNode
public AttributeSplitSuggestion[] getBestSplitSuggestions(SplitCriterion criterion, HoeffdingTree ht)
getBestSplitSuggestions
in class HoeffdingTree.ActiveLearningNode
public double getPrediction(weka.core.Instance inst, HoeffdingTree ht)
public double getPredictionTargetMean(weka.core.Instance inst, HoeffdingTree ht)
public double[] getClassVotes(weka.core.Instance inst, HoeffdingTree ht)
getClassVotes
in class HoeffdingTree.Node
public double getError(weka.core.Instance inst)
public double getPHError(weka.core.Instance inst)
public double getSquaredError()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.