Package moa.classifiers.trees
Class SelfOptimisingBaseTree.InnerNode
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.SelfOptimisingBaseTree.Node
-
- moa.classifiers.trees.SelfOptimisingBaseTree.InnerNode
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
SelfOptimisingBaseTree.SplitNode
- Enclosing class:
- SelfOptimisingBaseTree
public abstract static class SelfOptimisingBaseTree.InnerNode extends SelfOptimisingBaseTree.Node
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoExpandVector<SelfOptimisingBaseTree.Node>
children
protected double
lossExamplesSeen
protected double
lossFadedSumAlternate
protected double
lossFadedSumOriginal
protected double
lossNumQiTests
protected double
lossSumQi
protected double
PHmin
protected double
PHsum
protected double
previousWeight
-
Fields inherited from class moa.classifiers.trees.SelfOptimisingBaseTree.Node
alternateTree, changeDetection, examplesSeen, ID, originalNode, parent, sumOfAbsErrors, sumOfSquares, sumOfValues, tree
-
-
Constructor Summary
Constructors Constructor Description InnerNode(SelfOptimisingBaseTree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableChangeDetection()
SelfOptimisingBaseTree.Node
getChild(int index)
int
getChildIndex(SelfOptimisingBaseTree.Node child)
void
initializeAlternateTree()
int
numChildren()
boolean
PageHinckleyTest(double error, double threshold)
Check to see if the tree needs updatingvoid
restartChangeDetection()
void
setChild(int index, SelfOptimisingBaseTree.Node child)
-
Methods inherited from class moa.classifiers.trees.SelfOptimisingBaseTree.Node
calcByteSize, copyStatistics, describeSubtree, getDescription, getLevel, getNumSubtrees, getParent, getPrediction, setParent, skipInLevelCount
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
children
protected AutoExpandVector<SelfOptimisingBaseTree.Node> children
-
PHsum
protected double PHsum
-
PHmin
protected double PHmin
-
lossExamplesSeen
protected double lossExamplesSeen
-
lossFadedSumOriginal
protected double lossFadedSumOriginal
-
lossFadedSumAlternate
protected double lossFadedSumAlternate
-
lossNumQiTests
protected double lossNumQiTests
-
lossSumQi
protected double lossSumQi
-
previousWeight
protected double previousWeight
-
-
Constructor Detail
-
InnerNode
public InnerNode(SelfOptimisingBaseTree tree)
-
-
Method Detail
-
numChildren
public int numChildren()
-
getChild
public SelfOptimisingBaseTree.Node getChild(int index)
-
getChildIndex
public int getChildIndex(SelfOptimisingBaseTree.Node child)
- Overrides:
getChildIndex
in classSelfOptimisingBaseTree.Node
-
setChild
public void setChild(int index, SelfOptimisingBaseTree.Node child)
- Overrides:
setChild
in classSelfOptimisingBaseTree.Node
-
disableChangeDetection
public void disableChangeDetection()
- Overrides:
disableChangeDetection
in classSelfOptimisingBaseTree.Node
-
restartChangeDetection
public void restartChangeDetection()
- Overrides:
restartChangeDetection
in classSelfOptimisingBaseTree.Node
-
PageHinckleyTest
public boolean PageHinckleyTest(double error, double threshold)
Check to see if the tree needs updating
-
initializeAlternateTree
public void initializeAlternateTree()
-
-