Package moa.tasks.meta
Class ALMultiParamTask
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.tasks.AbstractTask
-
- moa.tasks.MainTask
-
- moa.tasks.meta.MetaMainTask
-
- moa.tasks.meta.ALMainTask
-
- moa.tasks.meta.ALMultiParamTask
-
- All Implemented Interfaces:
Configurable
,Serializable
,MOAObject
,OptionHandler
,Task
public class ALMultiParamTask extends ALMainTask
This task individually evaluates an active learning classifier for each element of a set of parameter values. The individual evaluation is done by prequential evaluation (testing, then training with each example in sequence).- Version:
- $Revision: 1 $
- Author:
- Cornelius Styp von Rekowski (cornelius.styp@ovgu.de)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ClassOptionWithListenerOption
prequentialEvaluationTaskOption
EditableMultiChoiceOption
variedParamNameOption
ListOption
variedParamValuesOption
-
Fields inherited from class moa.tasks.meta.MetaMainTask
colorCoding, isLastSubtaskOnLevel, nameSuffix
-
Fields inherited from class moa.tasks.MainTask
INSTANCES_BETWEEN_MONITOR_UPDATES, outputFileOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description ALMultiParamTask()
Default constructor which sets up the refresh mechanism between the learner and the variedParamName option.ALMultiParamTask(Color[] subTaskColorCoding)
Constructor that sets the color coding for the subtasks additionally to the default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
doMainTask(TaskMonitor monitor, ObjectRepository repository)
This method performs this task.Options
getOptions()
Gets the options of this objectString
getPurposeString()
Dictionary with option texts and objectsList<ALTaskThread>
getSubtaskThreads()
Get the list of threads for all subtasks and recursively the children's subtasks.Class<?>
getTaskResultType()
Gets the result type of this task.protected void
prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.void
setPartitionIdx(int partitionIdx)
-
Methods inherited from class moa.tasks.meta.MetaMainTask
getColorCoding, getDisplayName, getSubtaskLevel, isSubtask, setColorCoding, setIsLastSubtaskOnLevel, setNameSuffix
-
Methods inherited from class moa.tasks.MainTask
doTaskImpl
-
Methods inherited from class moa.tasks.AbstractTask
doTask, doTask, getDescription, getTaskName
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, 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.MOAObject
measureByteSize
-
-
-
-
Field Detail
-
prequentialEvaluationTaskOption
public ClassOptionWithListenerOption prequentialEvaluationTaskOption
-
variedParamNameOption
public EditableMultiChoiceOption variedParamNameOption
-
variedParamValuesOption
public ListOption variedParamValuesOption
-
-
Constructor Detail
-
ALMultiParamTask
public ALMultiParamTask()
Default constructor which sets up the refresh mechanism between the learner and the variedParamName option.
-
ALMultiParamTask
public ALMultiParamTask(Color[] subTaskColorCoding)
Constructor that sets the color coding for the subtasks additionally to the default constructor.- Parameters:
subTaskColorCoding
-
-
-
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 classAbstractOptionHandler
- Returns:
- the string with the purpose of this object
-
setPartitionIdx
public void setPartitionIdx(int partitionIdx)
-
getOptions
public Options getOptions()
Description copied from interface:OptionHandler
Gets the options of this object- Specified by:
getOptions
in interfaceOptionHandler
- Overrides:
getOptions
in classAbstractOptionHandler
- Returns:
- the options of this object
-
getTaskResultType
public Class<?> getTaskResultType()
Description copied from interface:Task
Gets the result type of this task. Tasks can return LearningCurve, LearningEvaluation, Classifier, String, Instances..- Returns:
- a class object of the result of this task
-
prepareForUseImpl
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractOptionHandler
This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implementprepareForUseImpl
and notprepareForUse
sinceprepareForUse
callsprepareForUseImpl
.- Overrides:
prepareForUseImpl
in classAbstractTask
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
doMainTask
protected Object doMainTask(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:MainTask
This method performs this task.AbstractTask
implementsdoTask
, that usesdoTaskImpl
.MainTask
implementsdoTaskImpl
usingdoMainTask
so its extensions only need to implementdoMainTask
.- Specified by:
doMainTask
in classMainTask
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use- Returns:
- an object with the result of this task
-
getSubtaskThreads
public List<ALTaskThread> getSubtaskThreads()
Description copied from class:MetaMainTask
Get the list of threads for all subtasks and recursively the children's subtasks.- Specified by:
getSubtaskThreads
in classALMainTask
- Returns:
- list of subtask threads, recursively generated
-
-