Class AggregateAnnotations<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.experiment.bean.task.Task<T,S>>
org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState>
org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateAnnotations<S>
- Type Parameters:
S- the type ofAnnotatorStrategyused for annotation
public class AggregateAnnotations<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>
extends org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S>,org.anchoranalysis.plugin.annotation.bean.aggregate.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 Constructor Description AggregateAnnotations() -
Method Summary
Modifier and Type Method Description voidafterAllJobsAreExecuted(org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context)org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedStatebeforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S>> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters)org.anchoranalysis.io.output.enabled.OutputEnabledMutabledefaultOutputs()voiddoJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState> input)booleanhasVeryQuickPerInputExecution()org.anchoranalysis.experiment.task.InputTypesExpectedinputTypesExpected()Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWith
-
Constructor Details
-
AggregateAnnotations
public AggregateAnnotations()
-
-
Method Details
-
beforeAnyJobIsExecuted
public org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S>> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
beforeAnyJobIsExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
doJobOnInput
public void doJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState> input) throws org.anchoranalysis.experiment.JobExecutionException- Specified by:
doJobOnInputin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState>- Throws:
org.anchoranalysis.experiment.JobExecutionException
-
afterAllJobsAreExecuted
public void afterAllJobsAreExecuted(org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
afterAllJobsAreExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState>
-
inputTypesExpected
public org.anchoranalysis.experiment.task.InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState>
-
defaultOutputs
public org.anchoranalysis.io.output.enabled.OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.annotation.io.AnnotationWithStrategy<S extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>,org.anchoranalysis.plugin.annotation.bean.aggregate.AggregateSharedState>
-