public abstract static class FIMTDD.Node extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected FIMTDD.Node |
alternateTree |
protected AutoExpandVector<FIMTDDNumericAttributeClassObserver> |
attributeObservers |
protected boolean |
changeDetection |
protected double |
examplesSeen |
int |
ID |
protected FIMTDD.Node |
originalNode |
protected FIMTDD.SplitNode |
parent |
protected double |
PHmin |
protected double |
PHsum |
protected double |
sumOfAbsErrors |
protected double |
sumOfSquares |
protected double |
sumOfValues |
protected double |
weightSeenAtLastSplitEvaluation |
Constructor and Description |
---|
FIMTDD.Node() |
Modifier and Type | Method and Description |
---|---|
int |
calcByteSize() |
int |
calcByteSizeIncludingSubtree() |
void |
copyStatistics(FIMTDD.Node node) |
int |
countLeaves() |
void |
describeSubtree(FIMTDD tree,
StringBuilder out,
int indent) |
void |
disableChangeDetection() |
double |
examplesSeen() |
void |
getDescription(StringBuilder sb,
int i)
Returns a string representation of this object.
|
FIMTDD.SplitNode |
getParent()
Return the parent node
|
double |
getPrediction(weka.core.Instance inst,
FIMTDD tree) |
boolean |
isLeaf() |
boolean |
PageHinckleyTest(double error,
double threshold)
Check to see if the tree needs updating
|
void |
restartChangeDetection() |
void |
setParent(FIMTDD.SplitNode parent)
Set the parent node
|
copy, copy, measureByteSize, measureByteSize, toString
protected double weightSeenAtLastSplitEvaluation
public int ID
protected FIMTDD.SplitNode parent
protected FIMTDD.Node alternateTree
protected FIMTDD.Node originalNode
protected AutoExpandVector<FIMTDDNumericAttributeClassObserver> attributeObservers
protected boolean changeDetection
protected double PHsum
protected double PHmin
protected double examplesSeen
protected double sumOfValues
protected double sumOfSquares
protected double sumOfAbsErrors
public void copyStatistics(FIMTDD.Node node)
public int calcByteSize()
public int calcByteSizeIncludingSubtree()
public boolean isLeaf()
public double examplesSeen()
public void setParent(FIMTDD.SplitNode parent)
public FIMTDD.SplitNode getParent()
public void disableChangeDetection()
public void restartChangeDetection()
public boolean PageHinckleyTest(double error, double threshold)
public void getDescription(StringBuilder sb, int i)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptioni
- the number of characters to indentpublic int countLeaves()
public void describeSubtree(FIMTDD tree, StringBuilder out, int indent)
public double getPrediction(weka.core.Instance inst, FIMTDD tree)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.