Package moa.classifiers.multilabel.trees
Class ISOUPTree.Node
- java.lang.Object
-
- moa.classifiers.multilabel.trees.ISOUPTree.Node
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ISOUPTree.InnerNode
,ISOUPTree.LeafNode
- Enclosing class:
- ISOUPTree
public abstract static class ISOUPTree.Node extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ISOUPTree.Node
alternateTree
protected boolean
changeDetection
DoubleVector
examplesSeen
int
ID
protected ISOUPTree.Node
originalNode
protected ISOUPTree.InnerNode
parent
DoubleVector
sumOfInputSquares
DoubleVector
sumOfInputValues
DoubleVector
sumOfSquares
DoubleVector
sumOfValues
protected ISOUPTree
tree
DoubleVector
weightOfInputs
protected double
weightSeenAtLastSplitEvaluation
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
calcByteSize()
void
copyStatistics(ISOUPTree.Node node)
void
describeSubtree(StringBuilder out, int indent)
void
disableChangeDetection()
int
getChildIndex(ISOUPTree.Node child)
void
getDescription(StringBuilder sb, int i)
int
getLevel()
int
getNumSubtrees()
ISOUPTree.Node
getParent()
Return the parent nodeabstract double[]
getPrediction(Instance inst)
void
restartChangeDetection()
void
setChild(int parentBranch, ISOUPTree.Node node)
void
setParent(ISOUPTree.InnerNode parent)
Set the parent nodeprotected boolean
skipInLevelCount()
-
-
-
Field Detail
-
weightSeenAtLastSplitEvaluation
protected double weightSeenAtLastSplitEvaluation
-
ID
public int ID
-
tree
protected ISOUPTree tree
-
parent
protected ISOUPTree.InnerNode parent
-
alternateTree
protected ISOUPTree.Node alternateTree
-
originalNode
protected ISOUPTree.Node originalNode
-
changeDetection
protected boolean changeDetection
-
examplesSeen
public DoubleVector examplesSeen
-
sumOfValues
public DoubleVector sumOfValues
-
sumOfSquares
public DoubleVector sumOfSquares
-
weightOfInputs
public DoubleVector weightOfInputs
-
sumOfInputValues
public DoubleVector sumOfInputValues
-
sumOfInputSquares
public DoubleVector sumOfInputSquares
-
-
Constructor Detail
-
Node
public Node(ISOUPTree tree)
-
-
Method Detail
-
copyStatistics
public void copyStatistics(ISOUPTree.Node node)
-
calcByteSize
public long calcByteSize()
-
setParent
public void setParent(ISOUPTree.InnerNode parent)
Set the parent node
-
getParent
public ISOUPTree.Node getParent()
Return the parent node
-
disableChangeDetection
public void disableChangeDetection()
-
restartChangeDetection
public void restartChangeDetection()
-
getDescription
public void getDescription(StringBuilder sb, int i)
-
getPrediction
public abstract double[] getPrediction(Instance inst)
-
describeSubtree
public void describeSubtree(StringBuilder out, int indent)
-
getLevel
public int getLevel()
-
setChild
public void setChild(int parentBranch, ISOUPTree.Node node)
-
getChildIndex
public int getChildIndex(ISOUPTree.Node child)
-
getNumSubtrees
public int getNumSubtrees()
-
skipInLevelCount
protected boolean skipInLevelCount()
-
-