Class 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
    • 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

      • setPartitionIdx

        public void setPartitionIdx​(int partitionIdx)
      • 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 implement prepareForUseImpl and not prepareForUse since prepareForUse calls prepareForUseImpl.
        Overrides:
        prepareForUseImpl in class AbstractTask
        Parameters:
        monitor - the TaskMonitor to use
        repository - the ObjectRepository to use
      • doMainTask

        protected Object doMainTask​(TaskMonitor monitor,
                                    ObjectRepository repository)
        Description copied from class: MainTask
        This method performs this task. AbstractTask implements doTask, that uses doTaskImpl. MainTask implements doTaskImpl using doMainTask so its extensions only need to implement doMainTask.
        Specified by:
        doMainTask in class MainTask
        Parameters:
        monitor - the TaskMonitor to use
        repository - 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 class ALMainTask
        Returns:
        list of subtask threads, recursively generated