Class CalculateFeaturesForObjects<T extends FeatureInput>

Object
CalculateFeaturesForObjects<T>
Type Parameters:
T - the type of feature input

public class CalculateFeaturesForObjects<T extends FeatureInput> extends Object
Calculates features for objects and stores the results.
  • Constructor Details

    • CalculateFeaturesForObjects

      public CalculateFeaturesForObjects(CombineObjectsForFeatures<T> table, InitializationWithEnergyStack initialization, boolean suppressErrors, FeatureCalculationContext<FeatureTableCalculator<T>> context) throws OperationFailedException
      Parameters:
      table - combines objects for feature calculation
      initialization - initialization with energy stack
      suppressErrors - if true, errors are suppressed and logged
      context - 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 a ObjectCollectionProvider.
      Parameters:
      provider - provides the object collection
      labelsForInput - 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 for objects, and stores the results.
      Parameters:
      objects - the objects to calculate features for
      energyStack - the energy-stack
      labelsForInput - how to assign labels to the input
      Throws:
      OperationFailedException - if the operation cannot be completed, but not if a particular feature calculation fails