Package moa.classifiers.trees
Class ARFFIMTDD.Node
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.ARFFIMTDD.Node
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
ARFFIMTDD.InnerNode
,ARFFIMTDD.LeafNode
- Enclosing class:
- ARFFIMTDD
public abstract static class ARFFIMTDD.Node extends AbstractMOAObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ARFFIMTDD.Node
alternateTree
protected boolean
changeDetection
protected double
examplesSeen
int
ID
protected ARFFIMTDD.Node
originalNode
protected ARFFIMTDD.Node
parent
protected double
sumOfAbsErrors
protected double
sumOfSquares
protected double
sumOfValues
protected ARFFIMTDD
tree
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcByteSize()
void
copyStatistics(ARFFIMTDD.Node node)
void
describeSubtree(StringBuilder out, int indent)
void
disableChangeDetection()
int
getChildIndex(ARFFIMTDD.Node child)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.int
getLevel()
int
getNumSubtrees()
ARFFIMTDD.Node
getParent()
Return the parent nodedouble
getPrediction(Instance inst)
void
restartChangeDetection()
void
setChild(int parentBranch, ARFFIMTDD.Node node)
void
setParent(ARFFIMTDD.Node parent)
Set the parent nodeprotected boolean
skipInLevelCount()
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
ID
public int ID
-
tree
protected ARFFIMTDD tree
-
changeDetection
protected boolean changeDetection
-
parent
protected ARFFIMTDD.Node parent
-
alternateTree
protected ARFFIMTDD.Node alternateTree
-
originalNode
protected ARFFIMTDD.Node originalNode
-
examplesSeen
protected double examplesSeen
-
sumOfValues
protected double sumOfValues
-
sumOfSquares
protected double sumOfSquares
-
sumOfAbsErrors
protected double sumOfAbsErrors
-
-
Constructor Detail
-
Node
public Node(ARFFIMTDD tree)
-
-
Method Detail
-
copyStatistics
public void copyStatistics(ARFFIMTDD.Node node)
-
calcByteSize
public int calcByteSize()
-
setParent
public void setParent(ARFFIMTDD.Node parent)
Set the parent node
-
getParent
public ARFFIMTDD.Node getParent()
Return the parent node
-
disableChangeDetection
public void disableChangeDetection()
-
restartChangeDetection
public void restartChangeDetection()
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
getPrediction
public double getPrediction(Instance inst)
-
describeSubtree
public void describeSubtree(StringBuilder out, int indent)
-
getLevel
public int getLevel()
-
setChild
public void setChild(int parentBranch, ARFFIMTDD.Node node)
-
getChildIndex
public int getChildIndex(ARFFIMTDD.Node child)
-
getNumSubtrees
public int getNumSubtrees()
-
skipInLevelCount
protected boolean skipInLevelCount()
-
-