MOA 12.03
Real Time Analytics for Data Streams
|
Abstract Option Handler. More...
Public Member Functions | |
String | getPurposeString () |
Gets the purpose of this object. | |
Options | getOptions () |
Gets the options of this object. | |
void | prepareForUse () |
This method prepares this object for use. | |
void | prepareForUse (TaskMonitor monitor, ObjectRepository repository) |
This method prepares this object for use. | |
String | getCLICreationString (Class<?> expectedType) |
Gets the Command Line Interface text to create the object. | |
OptionHandler | copy () |
This method produces a copy of this object. | |
Protected Member Functions | |
abstract void | prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository) |
This method describes the implementation of how to prepare this object for use. | |
Option[] | discoverOptionsViaReflection () |
Gets the options of this class via reflection. | |
void | prepareClassOptions (TaskMonitor monitor, ObjectRepository repository) |
Prepares the options of this class. | |
Object | getPreparedClassOption (ClassOption opt) |
Gets a prepared option of this class. | |
Protected Attributes | |
Options | options |
Options to handle. | |
Map< String, Object > | classOptionNamesToPreparedObjects |
Dictionary with option texts and objects. |
Abstract Option Handler.
All classes that have options in MOA extend this class.
Definition at line 40 of file AbstractOptionHandler.java.
OptionHandler moa.options.AbstractOptionHandler.copy | ( | ) |
This method produces a copy of this object.
Reimplemented from moa.AbstractMOAObject.
Reimplemented in moa.classifiers.AbstractClassifier, moa.classifiers.core.driftdetection.DDM, moa.classifiers.core.driftdetection.EDDM, and moa.clusterers.AbstractClusterer.
Definition at line 99 of file AbstractOptionHandler.java.
Referenced by moa.gui.TaskManagerPanel.TaskManagerPanel().
Option [] moa.options.AbstractOptionHandler.discoverOptionsViaReflection | ( | ) | [protected] |
Gets the options of this class via reflection.
Definition at line 108 of file AbstractOptionHandler.java.
Referenced by moa.options.AbstractOptionHandler.getOptions().
String moa.options.AbstractOptionHandler.getCLICreationString | ( | Class<?> | expectedType | ) |
Gets the Command Line Interface text to create the object.
Implements moa.options.OptionHandler.
Definition at line 92 of file AbstractOptionHandler.java.
Referenced by moa.streams.generators.RandomTreeGenerator.generateHeader(), moa.streams.clustering.RandomRBFGeneratorEvents.generateHeader(), moa.streams.generators.RandomRBFGenerator.generateHeader(), moa.streams.generators.HyperplaneGenerator.generateHeader(), moa.streams.generators.WaveformGenerator.prepareForUseImpl(), moa.streams.generators.STAGGERGenerator.prepareForUseImpl(), moa.streams.generators.SEAGenerator.prepareForUseImpl(), moa.streams.generators.LEDGenerator.prepareForUseImpl(), moa.streams.ConceptDriftRealStream.prepareForUseImpl(), moa.streams.generators.AgrawalGenerator.prepareForUseImpl(), moa.gui.TaskManagerPanel.setTaskString(), and moa.gui.TaskManagerPanel.TaskManagerPanel().
Options moa.options.AbstractOptionHandler.getOptions | ( | ) |
Gets the options of this object.
Implements moa.options.OptionHandler.
Definition at line 57 of file AbstractOptionHandler.java.
Referenced by moa.options.AbstractOptionHandler.getCLICreationString(), and moa.options.AbstractOptionHandler.prepareClassOptions().
Object moa.options.AbstractOptionHandler.getPreparedClassOption | ( | ClassOption | opt | ) | [protected] |
Gets a prepared option of this class.
opt | the class option to get |
Definition at line 177 of file AbstractOptionHandler.java.
Referenced by moa.tasks.WriteStreamToARFFFile.doMainTask(), moa.tasks.RunTasks.doMainTask(), moa.tasks.MeasureStreamSpeed.doMainTask(), moa.tasks.LearnModel.doMainTask(), moa.tasks.EvaluatePrequential.doMainTask(), moa.tasks.EvaluatePeriodicHeldOutTest.doMainTask(), moa.tasks.EvaluateModel.doMainTask(), moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask(), moa.tasks.EvaluateInterleavedChunks.doMainTask(), moa.tasks.EvaluateClustering.doMainTask(), moa.tasks.CacheShuffledStream.doTaskImpl(), moa.streams.FilteredStream.prepareForUseImpl(), moa.streams.ConceptDriftStream.prepareForUseImpl(), moa.streams.ConceptDriftRealStream.prepareForUseImpl(), moa.classifiers.meta.AccuracyWeightedEnsemble.prepareForUseImpl(), moa.classifiers.meta.AccuracyWeightedEnsemble.processChunk(), moa.classifiers.meta.AccuracyUpdatedEnsemble.processChunk(), moa.classifiers.drift.SingleClassifierDrift.resetLearningImpl(), moa.classifiers.meta.OzaBoostAdwin.resetLearningImpl(), moa.classifiers.meta.OzaBoost.resetLearningImpl(), moa.classifiers.meta.OzaBagASHT.resetLearningImpl(), moa.classifiers.meta.OzaBagAdwin.resetLearningImpl(), moa.classifiers.meta.OzaBag.resetLearningImpl(), moa.classifiers.meta.OCBoost.resetLearningImpl(), moa.classifiers.meta.LeveragingBag.resetLearningImpl(), moa.classifiers.active.ActiveClassifier.resetLearningImpl(), moa.classifiers.meta.AccuracyWeightedEnsemble.resetLearningImpl(), moa.streams.generators.multilabel.MetaMultilabelGenerator.restart(), moa.classifiers.drift.SingleClassifierDrift.trainOnInstanceImpl(), moa.classifiers.meta.LimAttClassifier.trainOnInstanceImpl(), and moa.classifiers.trees.DecisionStump.trainOnInstanceImpl().
String moa.options.AbstractOptionHandler.getPurposeString | ( | ) |
Gets the purpose of this object.
Implements moa.options.OptionHandler.
Reimplemented in moa.classifiers.AbstractClassifier, moa.classifiers.active.ActiveClassifier, moa.classifiers.bayes.NaiveBayes, moa.classifiers.bayes.NaiveBayesMultinomial, moa.classifiers.drift.SingleClassifierDrift, moa.classifiers.functions.MajorityClass, moa.classifiers.functions.Perceptron, moa.classifiers.functions.SGD, moa.classifiers.functions.SPegasos, moa.classifiers.meta.AccuracyUpdatedEnsemble, moa.classifiers.meta.AccuracyWeightedEnsemble, moa.classifiers.meta.LeveragingBag, moa.classifiers.meta.LimAttClassifier, moa.classifiers.meta.OCBoost, moa.classifiers.meta.OzaBag, moa.classifiers.meta.OzaBagAdwin, moa.classifiers.meta.OzaBagASHT, moa.classifiers.meta.OzaBoost, moa.classifiers.meta.OzaBoostAdwin, moa.classifiers.meta.WeightedMajorityAlgorithm, moa.classifiers.meta.WEKAClassifier, moa.classifiers.trees.AdaHoeffdingOptionTree, moa.classifiers.trees.ASHoeffdingTree, moa.classifiers.trees.DecisionStump, moa.classifiers.trees.HoeffdingAdaptiveTree, moa.classifiers.trees.HoeffdingOptionTree, moa.classifiers.trees.HoeffdingTree, moa.classifiers.trees.LimAttHoeffdingTree, moa.classifiers.trees.RandomHoeffdingTree, moa.clusterers.AbstractClusterer, moa.clusterers.WekaClusteringAlgorithm, moa.streams.ArffFileStream, moa.streams.clustering.FileStream, moa.streams.clustering.RandomRBFGeneratorEvents, moa.streams.ConceptDriftRealStream, moa.streams.ConceptDriftStream, moa.streams.FilteredStream, moa.streams.filters.AddNoiseFilter, moa.streams.generators.AgrawalGenerator, moa.streams.generators.HyperplaneGenerator, moa.streams.generators.LEDGenerator, moa.streams.generators.LEDGeneratorDrift, moa.streams.generators.multilabel.MetaMultilabelGenerator, moa.streams.generators.multilabel.MultilabelArffFileStream, moa.streams.generators.RandomRBFGenerator, moa.streams.generators.RandomRBFGeneratorDrift, moa.streams.generators.RandomTreeGenerator, moa.streams.generators.SEAGenerator, moa.streams.generators.STAGGERGenerator, moa.streams.generators.WaveformGenerator, moa.streams.generators.WaveformGeneratorDrift, moa.tasks.CacheShuffledStream, moa.tasks.EvaluateClustering, moa.tasks.EvaluateInterleavedChunks, moa.tasks.EvaluateInterleavedTestThenTrain, moa.tasks.EvaluateModel, moa.tasks.EvaluatePeriodicHeldOutTest, moa.tasks.EvaluatePrequential, moa.tasks.LearnModel, moa.tasks.MeasureStreamSpeed, moa.tasks.Plot, moa.tasks.RunTasks, and moa.tasks.WriteStreamToARFFFile.
Definition at line 52 of file AbstractOptionHandler.java.
void moa.options.AbstractOptionHandler.prepareClassOptions | ( | TaskMonitor | monitor, |
ObjectRepository | repository | ||
) | [protected] |
Prepares the options of this class.
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Definition at line 139 of file AbstractOptionHandler.java.
Referenced by moa.tasks.AbstractTask.doTask(), and moa.options.AbstractOptionHandler.prepareForUse().
void moa.options.AbstractOptionHandler.prepareForUse | ( | TaskMonitor | monitor, |
ObjectRepository | repository | ||
) |
This method prepares this object for use.
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Implements moa.options.OptionHandler.
Definition at line 74 of file AbstractOptionHandler.java.
void moa.options.AbstractOptionHandler.prepareForUse | ( | ) |
This method prepares this object for use.
Implements moa.options.OptionHandler.
Definition at line 69 of file AbstractOptionHandler.java.
Referenced by moa.gui.BatchCmd.BatchCmd(), moa.gui.visualization.RunVisualizer.RunVisualizer(), and moa.streams.filters.AbstractStreamFilter.setInputStream().
abstract void moa.options.AbstractOptionHandler.prepareForUseImpl | ( | TaskMonitor | monitor, |
ObjectRepository | repository | ||
) | [protected, pure virtual] |
This method describes the implementation of how to prepare this object for use.
All classes that extends this class have to implement prepareForUseImpl
and not prepareForUse
since prepareForUse
calls prepareForUseImpl
.
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Implemented in moa.classifiers.AbstractClassifier, moa.classifiers.core.attributeclassobservers.BinaryTreeNumericAttributeClassObserver, moa.classifiers.core.attributeclassobservers.GaussianNumericAttributeClassObserver, moa.classifiers.core.attributeclassobservers.GreenwaldKhannaNumericAttributeClassObserver, moa.classifiers.core.attributeclassobservers.NominalAttributeClassObserver, moa.classifiers.core.attributeclassobservers.NullAttributeClassObserver, moa.classifiers.core.attributeclassobservers.VFMLNumericAttributeClassObserver, moa.classifiers.core.driftdetection.DDM, moa.classifiers.core.driftdetection.EDDM, moa.classifiers.core.splitcriteria.GiniSplitCriterion, moa.classifiers.core.splitcriteria.InfoGainSplitCriterion, moa.classifiers.meta.AccuracyUpdatedEnsemble, moa.classifiers.meta.AccuracyWeightedEnsemble, moa.classifiers.meta.WeightedMajorityAlgorithm, moa.clusterers.AbstractClusterer, moa.evaluation.EWMAClassificationPerformanceEvaluator, moa.evaluation.FadingFactorClassificationPerformanceEvaluator, moa.evaluation.WindowClassificationPerformanceEvaluator, moa.evaluation.WindowRegressionPerformanceEvaluator, moa.streams.ArffFileStream, moa.streams.clustering.FileStream, moa.streams.clustering.RandomRBFGeneratorEvents, moa.streams.ConceptDriftRealStream, moa.streams.ConceptDriftStream, moa.streams.FilteredStream, moa.streams.filters.AbstractStreamFilter, moa.streams.generators.AgrawalGenerator, moa.streams.generators.HyperplaneGenerator, moa.streams.generators.LEDGenerator, moa.streams.generators.LEDGeneratorDrift, moa.streams.generators.multilabel.MetaMultilabelGenerator, moa.streams.generators.RandomRBFGenerator, moa.streams.generators.RandomTreeGenerator, moa.streams.generators.SEAGenerator, moa.streams.generators.STAGGERGenerator, moa.streams.generators.WaveformGenerator, moa.streams.generators.WaveformGeneratorDrift, and moa.tasks.AbstractTask.
Referenced by moa.options.AbstractOptionHandler.prepareForUse().
Map<String, Object> moa.options.AbstractOptionHandler.classOptionNamesToPreparedObjects [protected] |
Dictionary with option texts and objects.
Definition at line 49 of file AbstractOptionHandler.java.
Referenced by moa.tasks.AbstractTask.doTask(), moa.options.AbstractOptionHandler.getPreparedClassOption(), and moa.options.AbstractOptionHandler.prepareClassOptions().
Options moa.options.AbstractOptionHandler.options [protected] |
Options to handle.
Definition at line 46 of file AbstractOptionHandler.java.
Referenced by moa.classifiers.meta.WEKAClassifier.createWekaClassifier(), moa.options.AbstractOptionHandler.getOptions(), moa.clusterers.WekaClusteringAlgorithm.resetLearningImpl(), and moa.classifiers.meta.WEKAClassifier.resetLearningImpl().