Package moa.classifiers.trees
Class ARFFIMTDD.LeafNode
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.ARFFIMTDD.Node
-
- moa.classifiers.trees.ARFFIMTDD.LeafNode
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Enclosing class:
- ARFFIMTDD
public static class ARFFIMTDD.LeafNode extends ARFFIMTDD.Node
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoExpandVector<FIMTDDNumericAttributeClassObserver>
attributeObservers
protected double
examplesSeenAtLastSplitEvaluation
ARFFIMTDD.FIMTDDPerceptron
learningModel
protected int[]
listAttributes
protected int
numAttributes
-
Fields inherited from class moa.classifiers.trees.ARFFIMTDD.Node
alternateTree, changeDetection, examplesSeen, ID, originalNode, parent, sumOfAbsErrors, sumOfSquares, sumOfValues, tree
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForSplit(ARFFIMTDD tree)
void
describeSubtree(StringBuilder out, int indent)
AttributeSplitSuggestion[]
getBestSplitSuggestions(SplitCriterion criterion)
Return the best split suggestions for this node using the given split criteriaint
getChildIndex(ARFFIMTDD.Node child)
int
getNumSubtrees()
double
getPrediction(Instance inst)
double
getPredictionModel(Instance inst)
Retrieve the class votes using the perceptron learnerdouble
getPredictionTargetMean(Instance inst)
void
learnFromInstance(Instance inst, boolean growthAllowed, ARFFIMTDD arffimtdd)
Method to learn from an instance that passes the new instance to the perceptron learner, and also prevents the class value from being truncated to an int when it is passed to the attribute observervoid
setChild(int parentBranch, ARFFIMTDD.Node node)
protected boolean
skipInLevelCount()
-
Methods inherited from class moa.classifiers.trees.ARFFIMTDD.Node
calcByteSize, copyStatistics, disableChangeDetection, getDescription, getLevel, getParent, restartChangeDetection, setParent
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
learningModel
public ARFFIMTDD.FIMTDDPerceptron learningModel
-
attributeObservers
protected AutoExpandVector<FIMTDDNumericAttributeClassObserver> attributeObservers
-
examplesSeenAtLastSplitEvaluation
protected double examplesSeenAtLastSplitEvaluation
-
listAttributes
protected int[] listAttributes
-
numAttributes
protected int numAttributes
-
-
Constructor Detail
-
LeafNode
public LeafNode(ARFFIMTDD tree, int subspaceSize)
Create a new LeafNode
-
-
Method Detail
-
setChild
public void setChild(int parentBranch, ARFFIMTDD.Node node)
- Overrides:
setChild
in classARFFIMTDD.Node
-
getChildIndex
public int getChildIndex(ARFFIMTDD.Node child)
- Overrides:
getChildIndex
in classARFFIMTDD.Node
-
getNumSubtrees
public int getNumSubtrees()
- Overrides:
getNumSubtrees
in classARFFIMTDD.Node
-
skipInLevelCount
protected boolean skipInLevelCount()
- Overrides:
skipInLevelCount
in classARFFIMTDD.Node
-
learnFromInstance
public void learnFromInstance(Instance inst, boolean growthAllowed, ARFFIMTDD arffimtdd)
Method to learn from an instance that passes the new instance to the perceptron learner, and also prevents the class value from being truncated to an int when it is passed to the attribute observer
-
getBestSplitSuggestions
public AttributeSplitSuggestion[] getBestSplitSuggestions(SplitCriterion criterion)
Return the best split suggestions for this node using the given split criteria
-
getPredictionModel
public double getPredictionModel(Instance inst)
Retrieve the class votes using the perceptron learner
-
getPredictionTargetMean
public double getPredictionTargetMean(Instance inst)
-
getPrediction
public double getPrediction(Instance inst)
- Overrides:
getPrediction
in classARFFIMTDD.Node
-
checkForSplit
public void checkForSplit(ARFFIMTDD tree)
-
describeSubtree
public void describeSubtree(StringBuilder out, int indent)
- Overrides:
describeSubtree
in classARFFIMTDD.Node
-
-