Class SumAggregator

java.lang.Object
org.tribuo.data.text.impl.SumAggregator
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, FeatureAggregator

public class SumAggregator extends Object implements FeatureAggregator
A feature aggregator that aggregates occurrence counts across a number of feature lists.
  • Constructor Details

    • SumAggregator

      public SumAggregator()
  • Method Details

    • aggregate

      public List<Feature> aggregate(List<Feature> input)
      Description copied from interface: FeatureAggregator
      Aggregates feature values with the same names.
      Specified by:
      aggregate in interface FeatureAggregator
      Parameters:
      input - The input features.
      Returns:
      The output features.
    • getProvenance

      public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
      Specified by:
      getProvenance in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>