public class AggregateAnnotations<S extends AnnotatorStrategy> extends Task<AnnotationWithStrategy<S>,AggregateSharedState>
The following outputs are produced:
Output Name | Default? | Description |
---|---|---|
yes | a CSV file with each image and corresponding image-label. | |
outputs from Task |
Constructor and Description |
---|
AggregateAnnotations() |
Modifier and Type | Method and Description |
---|---|
void |
afterAllJobsAreExecuted(AggregateSharedState sharedState,
InputOutputContext context)
Called once after all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
AggregateSharedState |
beforeAnyJobIsExecuted(Outputter outputter,
ConcurrencyPlan concurrencyPlan,
List<AnnotationWithStrategy<S>> inputs,
ParametersExperiment parameters)
Called once before all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
OutputEnabledMutable |
defaultOutputs()
If specified, default rules for determine which outputs are enabled or not.
|
void |
doJobOnInput(InputBound<AnnotationWithStrategy<S>,AggregateSharedState> input)
Performs the task on a particular input.
|
boolean |
hasVeryQuickPerInputExecution()
Is the execution-time of the task per-input expected to be very quick to execute?
|
InputTypesExpected |
inputTypesExpected()
Highest class(es) that will function as a valid input.
|
executeJob, isInputCompatibleWith
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public AggregateSharedState beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<AnnotationWithStrategy<S>> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.beforeAnyJobIsExecuted
in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>,AggregateSharedState>
outputter
- the output-manager for the experiment (not for an individual job)concurrencyPlan
- available numbers of processors that can call Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
inputs
- a list of inputs, each will result in at least one call to Task.executeJob(ParametersUnbound)
.parameters
- the experiment-parameters.Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
and to Task.afterAllJobsAreExecuted(S, org.anchoranalysis.io.output.outputter.InputOutputContext)
.ExperimentExecutionException
- if a fatal error occurs executing this step of the
experiment.public void doJobOnInput(InputBound<AnnotationWithStrategy<S>,AggregateSharedState> input) throws JobExecutionException
Task
doJobOnInput
in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>,AggregateSharedState>
input
- the input for the job.JobExecutionException
- if an error occurs executing a particular job, that is not
otherwise suppressed.public void afterAllJobsAreExecuted(AggregateSharedState sharedState, InputOutputContext context) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.afterAllJobsAreExecuted
in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>,AggregateSharedState>
sharedState
- the shared-statecontext
- IO-context for experiment (not for an individual job)ExperimentExecutionException
- if a fatal error occurs executing this step of the
experiment.public boolean hasVeryQuickPerInputExecution()
Task
hasVeryQuickPerInputExecution
in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>,AggregateSharedState>
public InputTypesExpected inputTypesExpected()
Task
This is usually the class of T (or sometimes the absolute base class InputFromManager).
inputTypesExpected
in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>,AggregateSharedState>
public OutputEnabledMutable defaultOutputs()
Task
defaultOutputs
in class Task<AnnotationWithStrategy<S extends AnnotatorStrategy>,AggregateSharedState>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.