Package moa.classifiers.trees.iadem
Class Iadem3Subtree
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.AbstractClassifier
-
- moa.classifiers.trees.iadem.Iadem2
-
- moa.classifiers.trees.iadem.Iadem3
-
- moa.classifiers.trees.iadem.Iadem3Subtree
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,Classifier
,MultiClassClassifier
,AWTRenderable
,Learner<Example<Instance>>
,MOAObject
,OptionHandler
public class Iadem3Subtree extends Iadem3
- Author:
- Isvani FrÃas Blanco (ifriasb at hotmail dot com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class moa.classifiers.trees.iadem.Iadem3
Iadem3.AdaptiveLeafNode, Iadem3.AdaptiveLeafNodeNB, Iadem3.AdaptiveLeafNodeNBAdaptive, Iadem3.AdaptiveLeafNodeNBKirkby, Iadem3.AdaptiveLeafNodeWeightedVote, Iadem3.AdaptiveNominalVirtualNode, Iadem3.AdaptiveNumericVirtualNode, Iadem3.AdaptiveSplitNode, Iadem3.restartsVariablesAtDrift
-
Nested classes/interfaces inherited from class moa.classifiers.trees.iadem.Iadem2
Iadem2.LeafNode, Iadem2.LeafNodeNB, Iadem2.LeafNodeNBKirkby, Iadem2.LeafNodeWeightedVote, Iadem2.Node, Iadem2.NominalVirtualNode, Iadem2.NumericVirtualNode, Iadem2.SplitNode, Iadem2.VirtualNode
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractChangeDetector
errorEstimator
protected Iadem3
mainTree
protected Iadem2.Node
nodo
protected static long
serialVersionUID
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem3
currentSplitState, deletedTrees, interchangedTrees, lastPrediction, lastPredictionInLeaf, maxNestingLevelOption, maxSubtreesPerNodeOption, numSplitsByBreakingTies, numTrees, restartAtDrift, SPLIT_BY_TIE_BREAKING, SPLIT_WITH_CONFIDENCE, subtreeList, treeLevel
-
Fields inherited from class moa.classifiers.trees.iadem.Iadem2
attributeDiferentiation, driftDetectionMethodOption, ERROR_MARGIN, estimator, gracePeriodOption, leafPredictionOption, naiveBayesLimit, numberOfInstancesProcessed, numberOfLeaves, numberOfNodes, numericEstimatorOption, percentInCommon, splitConfidenceOption, splitCriterionOption, splitTestsOption, treeRoot
-
Fields inherited from class moa.classifiers.AbstractClassifier
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description Iadem3Subtree(Iadem2.Node node, int treeLevel, Iadem3 mainTree, Instance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubtree(Iadem3Subtree subtree)
boolean
canCreateSubtree()
double
estimacionValorMedio()
AbstractChangeDetector
getEstimador()
AbstractChangeDetector
getEstimatorCopy()
protected Iadem3
getMainTree()
void
learnFromInstance(Instance instance)
void
newDeletedTree()
protected IademNumericAttributeObserver
newNumericClassObserver()
void
newSplit(int numOfLeaves)
void
newTreeChange()
void
removeSubtree(Iadem3Subtree subtree)
void
setEstimador(AbstractChangeDetector estimador)
void
setNewTree()
void
updateNumberOfLeaves(int amount)
void
updateNumberOfNodes(int amount)
void
updateNumberOfNodesSplitByTieBreaking(int amount)
int
windowWidth()
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem3
copyTree, createRoot, getChangedTrees, getClassVotes, getClassVotesFromLeaf, getMaxAltSubtreesPerNode, getMaxNestingLevels, getModelMeasurementsImpl, getNumberOfSubtrees, getTreeLevel, hasTree, isRestaurarVectoresPrediccion, newLeafNode, numDeletedTrees, numSubtrees, numTrees
-
Methods inherited from class moa.classifiers.trees.iadem.Iadem2
getAttributeDifferentiation, getMaxNumberOfBins, getMeasure, getModelDescription, getNaiveBayesLimit, getNumberOfInstancesProcessed, getNumberOfLeaves, getNumberOfNodes, getNumberOfNodes, getNumericAttObserver, getPercentInCommon, getTreeRoot, getValuesOfNominalAttributes, getVotesForInstance, incrNumberOfInstancesProcessed, isOnlyBinaryTest, isOnlyMultiwayTest, isRandomizable, newEstimator, resetLearningImpl, setNumberOfLeaves, setNumberOfNodes, setTreeRoot, trainOnInstanceImpl
-
Methods inherited from class moa.classifiers.AbstractClassifier
contextIsCompatible, copy, correctlyClassifies, defineImmutableCapabilities, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getPredictionForInstance, getPurposeString, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance
-
Methods inherited from class moa.options.AbstractOptionHandler
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
getCLICreationString, getOptions, prepareForUse, prepareForUse
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
errorEstimator
protected AbstractChangeDetector errorEstimator
-
nodo
protected Iadem2.Node nodo
-
mainTree
protected Iadem3 mainTree
-
-
Constructor Detail
-
Iadem3Subtree
public Iadem3Subtree(Iadem2.Node node, int treeLevel, Iadem3 mainTree, Instance instance)
-
-
Method Detail
-
getEstimatorCopy
public AbstractChangeDetector getEstimatorCopy()
- Overrides:
getEstimatorCopy
in classIadem3
-
newNumericClassObserver
protected IademNumericAttributeObserver newNumericClassObserver()
- Overrides:
newNumericClassObserver
in classIadem2
-
learnFromInstance
public void learnFromInstance(Instance instance) throws IademException
- Overrides:
learnFromInstance
in classIadem3
- Throws:
IademException
-
canCreateSubtree
public boolean canCreateSubtree()
- Overrides:
canCreateSubtree
in classIadem3
-
estimacionValorMedio
public double estimacionValorMedio()
-
windowWidth
public int windowWidth()
-
getEstimador
public AbstractChangeDetector getEstimador()
-
setEstimador
public void setEstimador(AbstractChangeDetector estimador)
-
setNewTree
public void setNewTree()
-
newDeletedTree
public void newDeletedTree()
- Overrides:
newDeletedTree
in classIadem3
-
newTreeChange
public void newTreeChange()
- Overrides:
newTreeChange
in classIadem3
-
getMainTree
protected Iadem3 getMainTree()
- Overrides:
getMainTree
in classIadem3
-
updateNumberOfLeaves
public void updateNumberOfLeaves(int amount)
- Overrides:
updateNumberOfLeaves
in classIadem3
-
updateNumberOfNodes
public void updateNumberOfNodes(int amount)
- Overrides:
updateNumberOfNodes
in classIadem3
-
updateNumberOfNodesSplitByTieBreaking
public void updateNumberOfNodesSplitByTieBreaking(int amount)
- Overrides:
updateNumberOfNodesSplitByTieBreaking
in classIadem3
-
addSubtree
public void addSubtree(Iadem3Subtree subtree)
- Overrides:
addSubtree
in classIadem3
-
removeSubtree
public void removeSubtree(Iadem3Subtree subtree)
- Overrides:
removeSubtree
in classIadem3
-
-