Class AggregateAnnotations<S extends AnnotatorStrategy>
Object
AnchorBean<Task<AnnotationWithStrategy<S>, AggregateSharedState>>
Task<AnnotationWithStrategy<S>, AggregateSharedState>
AggregateAnnotations<S>
- Type Parameters:
S- the type ofAnnotatorStrategyused 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 Name | Default? | Description |
|---|---|---|
| "aggregated" | yes | a CSV file with each image and corresponding image-label. |
outputs from Task |
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAllJobsAreExecuted(AggregateSharedState sharedState, InputOutputContext context) AggregateSharedStatebeforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<AnnotationWithStrategy<S>> inputs, ParametersExperiment parameters) OutputEnabledMutablevoiddoJobOnInput(InputBound<AnnotationWithStrategy<S>, AggregateSharedState> input) booleanInputTypesExpectedMethods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWithMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
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:
beforeAnyJobIsExecutedin classTask<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>- Throws:
ExperimentExecutionException
-
doJobOnInput
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classTask<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
-
inputTypesExpected
public InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classTask<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
-
defaultOutputs
public OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classTask<AnnotationWithStrategy<S extends AnnotatorStrategy>, AggregateSharedState>
-