Package moa.classifiers.trees
Class ORTO
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.AbstractClassifier
-
- moa.classifiers.trees.FIMTDD
-
- moa.classifiers.trees.ORTO
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,Classifier
,Regressor
,AWTRenderable
,Learner<Example<Instance>>
,MOAObject
,OptionHandler
public class ORTO extends FIMTDD implements Regressor
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ORTO.OptionNode
-
Nested classes/interfaces inherited from class moa.classifiers.trees.FIMTDD
FIMTDD.FIMTDDPerceptron, FIMTDD.InnerNode, FIMTDD.LeafNode, FIMTDD.Node, FIMTDD.SplitNode
-
-
Field Summary
Fields Modifier and Type Field Description IntOption
maxOptionLevelOption
IntOption
maxTreesOption
FloatOption
optionDecayFactorOption
FloatOption
optionFadingFactorOption
MultiChoiceOption
optionNodeAggregationOption
-
Fields inherited from class moa.classifiers.trees.FIMTDD
alternateTreeFadingFactorOption, alternateTreeTimeOption, alternateTreeTMinOption, examplesSeen, gracePeriodOption, leafNodeCount, learningRateDecayFactorOption, learningRatioConstOption, learningRatioOption, maxID, PageHinckleyAlphaOption, PageHinckleyThresholdOption, regressionTreeOption, splitConfidenceOption, splitCriterionOption, splitNodeCount, sumOfAttrSquares, sumOfAttrValues, sumOfSquares, sumOfValues, tieThresholdOption, 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 ORTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
attemptToSplit(FIMTDD.LeafNode node, FIMTDD.Node parent, int parentIndex)
protected FIMTDD.Node
findWorstOption()
protected Measurement[]
getModelMeasurementsImpl()
Gets the current measurements of this classifier.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods.String
getPurposeString()
Dictionary with option texts and objectsprotected ORTO.OptionNode
newOptionNode()
void
processInstance(Instance inst, FIMTDD.Node node, double prediction, double normalError, boolean growthAllowed, boolean inAlternate)
void
processInstanceOptionNode(Instance inst, ORTO.OptionNode node, double prediction, double normalError, boolean growthAllowed, boolean inAlternate)
protected void
removeExcessTrees()
void
resetLearningImpl()
Resets this classifier.-
Methods inherited from class moa.classifiers.trees.FIMTDD
buildingModelTree, calcByteSize, checkRoot, computeHoeffdingBound, computeSD, getModelDescription, getNormalizedError, getVotesForInstance, isRandomizable, newLeafModel, newLeafNode, newNumericClassObserver, newSplitNode, normalizeTargetValue, scalarProduct, trainOnInstanceImpl
-
Methods inherited from class moa.classifiers.AbstractClassifier
contextIsCompatible, copy, correctlyClassifies, defineImmutableCapabilities, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getPredictionForInstance, 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
-
maxTreesOption
public IntOption maxTreesOption
-
maxOptionLevelOption
public IntOption maxOptionLevelOption
-
optionDecayFactorOption
public FloatOption optionDecayFactorOption
-
optionNodeAggregationOption
public MultiChoiceOption optionNodeAggregationOption
-
optionFadingFactorOption
public FloatOption optionFadingFactorOption
-
-
Method Detail
-
getPurposeString
public String getPurposeString()
Description copied from class:AbstractOptionHandler
Dictionary with option texts and objects- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classFIMTDD
- Returns:
- the string with the purpose of this object
-
resetLearningImpl
public void resetLearningImpl()
Description copied from class:AbstractClassifier
Resets this classifier. It must be similar to starting a new classifier from scratch.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. Note that this will produce compiler errors if not overridden.- Overrides:
resetLearningImpl
in classFIMTDD
-
getModelMeasurementsImpl
protected Measurement[] getModelMeasurementsImpl()
Description copied from class:AbstractClassifier
Gets the current measurements of this classifier.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. Note that this will produce compiler errors if not overridden.- Overrides:
getModelMeasurementsImpl
in classFIMTDD
- Returns:
- an array of measurements to be used in evaluation tasks
-
processInstance
public void processInstance(Instance inst, FIMTDD.Node node, double prediction, double normalError, boolean growthAllowed, boolean inAlternate)
- Overrides:
processInstance
in classFIMTDD
-
processInstanceOptionNode
public void processInstanceOptionNode(Instance inst, ORTO.OptionNode node, double prediction, double normalError, boolean growthAllowed, boolean inAlternate)
-
newOptionNode
protected ORTO.OptionNode newOptionNode()
-
attemptToSplit
protected void attemptToSplit(FIMTDD.LeafNode node, FIMTDD.Node parent, int parentIndex)
- Overrides:
attemptToSplit
in classFIMTDD
-
findWorstOption
protected FIMTDD.Node findWorstOption()
-
removeExcessTrees
protected void removeExcessTrees()
-
-