Class AverageAggregator

java.lang.Object
org.tribuo.data.text.impl.AverageAggregator
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 AverageAggregator extends Object implements FeatureAggregator
A feature aggregator that averages feature values across a feature list.
  • Constructor Details

    • AverageAggregator

      public AverageAggregator()
  • 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>