T
- input-type from which one or more rows of features are derivedS
- row-source that is duplicated for each new thread (to prevent any concurrency issues)U
- feature-input type for features
bean-fieldpublic abstract class FeatureSource<T extends InputFromManager,S,U extends FeatureInput> extends AnchorBean<FeatureSource<T,S,U>>
Constructor and Description |
---|
FeatureSource() |
Modifier and Type | Method and Description |
---|---|
abstract void |
calculateAndOutput(T input,
FeatureCalculationContext<S> context)
Processes one input to calculate feature-results and output them to the file-system.
|
abstract FeatureExporter<S> |
createExporter(LabelHeaders metadataHeaders,
List<NamedBean<FeatureListProvider<U>>> features,
FeatureOutputNames outputNames,
Optional<InputGrouper> grouper,
FeatureExporterContext context)
Creates the
FeatureExporter to be used for calculating and exporting feature-results. |
abstract LabelHeaders |
headers(boolean groupsEnabled)
Generate label-headers for the non-feature-result columns in the CSV.
|
abstract boolean |
includeGroupInExperiment(boolean groupGeneratorDefined)
Iff true, group columns are added to the CSV exports, and other group exports may occur in
sub-directories.
|
abstract InputTypesExpected |
inputTypesExpected()
Highest class(es) that will function as a valid input.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public abstract FeatureExporter<S> createExporter(LabelHeaders metadataHeaders, List<NamedBean<FeatureListProvider<U>>> features, FeatureOutputNames outputNames, Optional<InputGrouper> grouper, FeatureExporterContext context) throws CreateException
FeatureExporter
to be used for calculating and exporting feature-results.metadataHeaders
- headers to use for additional "metadata" before feature-results.features
- the features to calculate.outputNames
- the names of various kind of outputs.grouper
- when defined, assigns each input to a group.context
- IO-context.FeatureExporter
as matches this source of features.CreateException
- if it cannot be created.public abstract boolean includeGroupInExperiment(boolean groupGeneratorDefined)
groupGeneratorDefined
- has a group-generator been defined for this experiment?public abstract LabelHeaders headers(boolean groupsEnabled)
public abstract void calculateAndOutput(T input, FeatureCalculationContext<S> context) throws OperationFailedException
input
- one particular input that will creates one or more "rows" in a feature-tablecontext
- io-contextOperationFailedException
public abstract InputTypesExpected inputTypesExpected()
This is usually the class of T (or sometimes the absolute base class InputFromManager)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.