public static class FIMTDD.FIMTDDSplitNode extends HoeffdingTree.SplitNode implements FIMTDD.AdaptationCompatibleNode
Modifier and Type | Field and Description |
---|---|
protected FIMTDD |
alternateTree |
protected DoubleVector |
lossStatistics |
protected HoeffdingTree.Node |
parent |
protected double |
PHmT |
protected double |
PHMT |
protected int |
previousWeight |
protected int |
weightSeen |
children, splitTest
observedClassDistribution
Constructor and Description |
---|
FIMTDD.FIMTDDSplitNode(InstanceConditionalTest splitTest,
double[] classObservations)
Create a new FIMTDDSplitNode
|
Modifier and Type | Method and Description |
---|---|
HoeffdingTree.Node |
getParent()
Return the parent node
|
void |
learnFromInstance(weka.core.Instance inst,
FIMTDD ht,
boolean growingAltTree)
This method has been added to the SplitNode subclass to allow alternate trees
to be grown and compared to the current tree, to allow adaptation in the face
of concept drift
|
boolean |
PageHinckleyTest(double error,
double threshold)
Check to see if the tree needs updating
|
void |
setParent(HoeffdingTree.Node parent)
Set the parent node
|
calcByteSize, calcByteSizeIncludingSubtree, describeSubtree, filterInstanceToLeaf, getChild, instanceChildIndex, isLeaf, numChildren, setChild, subtreeDepth
calculatePromise, getClassVotes, getDescription, getObservedClassDistribution, observedClassDistributionIsPure
copy, copy, measureByteSize, measureByteSize, toString
protected HoeffdingTree.Node parent
protected double PHmT
protected double PHMT
protected FIMTDD alternateTree
protected DoubleVector lossStatistics
protected int weightSeen
protected int previousWeight
public FIMTDD.FIMTDDSplitNode(InstanceConditionalTest splitTest, double[] classObservations)
public void setParent(HoeffdingTree.Node parent)
setParent
in interface FIMTDD.AdaptationCompatibleNode
public HoeffdingTree.Node getParent()
getParent
in interface FIMTDD.AdaptationCompatibleNode
public boolean PageHinckleyTest(double error, double threshold)
public void learnFromInstance(weka.core.Instance inst, FIMTDD ht, boolean growingAltTree)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.