Package moa.classifiers.trees.iadem
Class Iadem3.AdaptiveSplitNode
- java.lang.Object
-
- moa.classifiers.trees.iadem.Iadem2.Node
-
- moa.classifiers.trees.iadem.Iadem2.SplitNode
-
- moa.classifiers.trees.iadem.Iadem3.AdaptiveSplitNode
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Iadem3
public class Iadem3.AdaptiveSplitNode extends Iadem2.SplitNode implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoExpandVector<Iadem3Subtree>
alternativeTree
protected int
causeOfSplit
protected AbstractChangeDetector
estimator
protected Iadem3.AdaptiveLeafNode
leaf
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem2.SplitNode
children, splitTest
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem2.Node
classValueDist, parent, tree
-
-
Constructor Summary
Constructors Constructor Description AdaptiveSplitNode(Iadem3 tree, Iadem2.Node parent, Iadem2.Node[] child, double[] freq, InstanceConditionalTest splitTest, AbstractChangeDetector estimator, Iadem3.AdaptiveLeafNode predictionLeaf, int causeOfSplit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getClassVotes(Instance observacion)
double
getErrorEstimation()
void
getNumberOfNodes(int[] count)
int
getNumberOfSubtrees()
int
getNumTrees()
int
getSubtreeNodeCount()
boolean
isUseless(int i)
Iadem2.Node
learnFromInstance(Instance instance)
protected void
updateSubtreeLevel(Iadem2.Node node)
protected void
updateSubtreeLevelAux(Iadem2.Node node)
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem2.SplitNode
addChild, changeChildren, getChild, getChildCount, getLeaves, getSplitTest, instanceChildIndex, removeChild, setChild, setChild, setChildren
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem2.Node
getClassValueDist, getParent, getTree, setClassValueDist, setParent, setTree
-
-
-
-
Field Detail
-
alternativeTree
protected AutoExpandVector<Iadem3Subtree> alternativeTree
-
estimator
protected AbstractChangeDetector estimator
-
causeOfSplit
protected int causeOfSplit
-
leaf
protected Iadem3.AdaptiveLeafNode leaf
-
-
Constructor Detail
-
AdaptiveSplitNode
public AdaptiveSplitNode(Iadem3 tree, Iadem2.Node parent, Iadem2.Node[] child, double[] freq, InstanceConditionalTest splitTest, AbstractChangeDetector estimator, Iadem3.AdaptiveLeafNode predictionLeaf, int causeOfSplit)
-
-
Method Detail
-
learnFromInstance
public Iadem2.Node learnFromInstance(Instance instance)
- Overrides:
learnFromInstance
in classIadem2.SplitNode
-
isUseless
public boolean isUseless(int i)
-
updateSubtreeLevel
protected void updateSubtreeLevel(Iadem2.Node node)
-
updateSubtreeLevelAux
protected void updateSubtreeLevelAux(Iadem2.Node node)
-
getNumTrees
public int getNumTrees()
-
getClassVotes
public double[] getClassVotes(Instance observacion)
- Overrides:
getClassVotes
in classIadem2.SplitNode
-
getSubtreeNodeCount
public int getSubtreeNodeCount()
- Overrides:
getSubtreeNodeCount
in classIadem2.SplitNode
-
getErrorEstimation
public double getErrorEstimation()
-
getNumberOfNodes
public void getNumberOfNodes(int[] count)
- Overrides:
getNumberOfNodes
in classIadem2.SplitNode
-
getNumberOfSubtrees
public int getNumberOfSubtrees()
-
-