Class AggregateAnnotations<S extends AnnotatorStrategy>

Object
AnchorBean<Task<AnnotationWithStrategy<S>, AggregateSharedState>>
Task<AnnotationWithStrategy<S>, AggregateSharedState>
AggregateAnnotations<S>
Type Parameters:
S - the type of AnnotatorStrategy used for annotation

public class AggregateAnnotations<S extends AnnotatorStrategy> extends Task<AnnotationWithStrategy<S>, AggregateSharedState>
Aggregates many per-image annotations together in form of a CSV file.

The following outputs are produced:

Output NameDefault?Description
"aggregated"yesa CSV file with each image and corresponding image-label.
outputs from Task
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterAllJobsAreExecuted(AggregateSharedState sharedState, InputOutputContext context)
     
    AggregateSharedState
    beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<AnnotationWithStrategy<S>> inputs, ParametersExperiment parameters)
     
    OutputEnabledMutable
     
    void
    doJobOnInput(InputBound<AnnotationWithStrategy<S>, AggregateSharedState> input)
     
    boolean
     
    InputTypesExpected
     

    Methods inherited from class org.anchoranalysis.experiment.bean.task.Task

    executeJob, isInputCompatibleWith

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AggregateAnnotations

      public AggregateAnnotations()
  • Method Details

    • beforeAnyJobIsExecuted

      public AggregateSharedState beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<AnnotationWithStrategy<S>> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
      Specified by:
      beforeAnyJobIsExecuted in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
      Throws:
      ExperimentExecutionException
    • doJobOnInput

      public void doJobOnInput(InputBound<AnnotationWithStrategy<S>, AggregateSharedState> input) throws JobExecutionException
      Specified by:
      doJobOnInput in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
      Throws:
      JobExecutionException
    • afterAllJobsAreExecuted

      public void afterAllJobsAreExecuted(AggregateSharedState sharedState, InputOutputContext context) throws ExperimentExecutionException
      Specified by:
      afterAllJobsAreExecuted in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
      Throws:
      ExperimentExecutionException
    • hasVeryQuickPerInputExecution

      public boolean hasVeryQuickPerInputExecution()
      Specified by:
      hasVeryQuickPerInputExecution in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
    • inputTypesExpected

      public InputTypesExpected inputTypesExpected()
      Specified by:
      inputTypesExpected in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
    • defaultOutputs

      public OutputEnabledMutable defaultOutputs()
      Overrides:
      defaultOutputs in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>