Class CalculateFeaturesForObjects<T extends FeatureInput>
Object
CalculateFeaturesForObjects<T>
- Type Parameters:
T- the type of feature input
Calculates features for objects and stores the results.
-
Constructor Summary
ConstructorsConstructorDescriptionCalculateFeaturesForObjects(CombineObjectsForFeatures<T> table, InitializationWithEnergyStack initialization, boolean suppressErrors, FeatureCalculationContext<FeatureTableCalculator<T>> context) Creates a newCalculateFeaturesForObjects. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateForObjects(ObjectCollectionProvider provider, LabelsForInput labelsForInput) Calculates features for objects provided by aObjectCollectionProvider.voidcalculateForObjects(ObjectCollection objects, EnergyStack energyStack, LabelsForInput labelsForInput) Calculates the feature-results forobjects, and stores the results.
-
Constructor Details
-
CalculateFeaturesForObjects
public CalculateFeaturesForObjects(CombineObjectsForFeatures<T> table, InitializationWithEnergyStack initialization, boolean suppressErrors, FeatureCalculationContext<FeatureTableCalculator<T>> context) throws OperationFailedException Creates a newCalculateFeaturesForObjects.- Parameters:
table- combines objects for feature calculationinitialization- initialization with energy stacksuppressErrors- if true, errors are suppressed and loggedcontext- context for feature calculation- Throws:
OperationFailedException- if the calculator cannot be started
-
-
Method Details
-
calculateForObjects
public void calculateForObjects(ObjectCollectionProvider provider, LabelsForInput labelsForInput) throws OperationFailedException Calculates features for objects provided by aObjectCollectionProvider.- Parameters:
provider- provides the object collectionlabelsForInput- how to assign labels to the input- Throws:
OperationFailedException- if the operation fails
-
calculateForObjects
public void calculateForObjects(ObjectCollection objects, EnergyStack energyStack, LabelsForInput labelsForInput) throws OperationFailedException Calculates the feature-results forobjects, and stores the results.- Parameters:
objects- the objects to calculate features forenergyStack- the energy-stacklabelsForInput- how to assign labels to the input- Throws:
OperationFailedException- if the operation cannot be completed, but not if a particular feature calculation fails
-