Aggregator

Aggregator is a type of Evaluator which aggregates scores of multiple other Evaluators into one.

Grail by default provides 5 aggregators:
  • Average (Mean)

  • Min

  • Max

  • Sum

  • Product

Example

  • C++

  • C#

auto aggregator = std::make_shared<ProductAggregator<ContextType>>(
  std::vector<Evaluator<ContextType>>
  {
    someConsideration, someCurve, someOtherAggregator
  });
var aggregator = new ProductAggregator<ContextType>(
  new List<Evaluator<ContextType>>()
  {
    someConsideration, someCurve, someOtherAggregator
  });

API Reference