public abstract static class ISOUPTree.Node extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected ISOUPTree.Node |
alternateTree |
protected AutoExpandVector<AttributeStatisticsObserver> |
attributeObservers |
protected boolean |
changeDetection |
protected double |
examplesSeen |
int |
ID |
protected ISOUPTree.Node |
originalNode |
protected ISOUPTree.SplitNode |
parent |
protected DoubleVector |
sumOfSquares |
protected DoubleVector |
sumOfValues |
protected ISOUPTree |
tree |
protected double |
weightSeenAtLastSplitEvaluation |
Modifier and Type | Method and Description |
---|---|
int |
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)
Returns a string representation of this object.
|
int |
getLevel() |
int |
getNumSubtrees() |
ISOUPTree.Node |
getParent()
Return the parent node
|
double[] |
getPrediction(MultiLabelInstance inst) |
void |
restartChangeDetection() |
void |
setChild(int parentBranch,
ISOUPTree.Node node) |
void |
setParent(ISOUPTree.SplitNode parent)
Set the parent node
|
protected boolean |
skipInLevelCount() |
copy, copy, measureByteSize, measureByteSize, toString
protected double weightSeenAtLastSplitEvaluation
public int ID
protected ISOUPTree tree
protected ISOUPTree.SplitNode parent
protected ISOUPTree.Node alternateTree
protected ISOUPTree.Node originalNode
protected AutoExpandVector<AttributeStatisticsObserver> attributeObservers
protected boolean changeDetection
protected double examplesSeen
protected DoubleVector sumOfValues
protected DoubleVector sumOfSquares
public Node(ISOUPTree tree)
public void copyStatistics(ISOUPTree.Node node)
public int calcByteSize()
public void setParent(ISOUPTree.SplitNode parent)
public ISOUPTree.Node getParent()
public void disableChangeDetection()
public void restartChangeDetection()
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 double[] getPrediction(MultiLabelInstance inst)
public void describeSubtree(StringBuilder out, int indent)
public int getLevel()
public void setChild(int parentBranch, ISOUPTree.Node node)
public int getChildIndex(ISOUPTree.Node child)
public int getNumSubtrees()
protected boolean skipInLevelCount()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.