Class ALPartitionEvaluationTask

  • All Implemented Interfaces:
    Configurable, Serializable, MOAObject, OptionHandler, Task

    public class ALPartitionEvaluationTask
    extends ALMainTask
    This task extensively evaluates an active learning classifier on a stream. First, the given data set is partitioned into subsets, each leaving out a different part of the overall data. On each subset, the ALMultiParamTask is performed which individually evaluates the 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 Detail

      • multiParamTaskOption

        public ClassOption multiParamTaskOption
      • numPartitionsOption

        public IntOption numPartitionsOption
      • randomSeedOption

        public IntOption randomSeedOption
    • Constructor Detail

      • ALPartitionEvaluationTask

        public ALPartitionEvaluationTask()
    • Method Detail

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