Interface EvaluatorFn<O>

Type Parameters:
O - the type of evaluator-specific options
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EvaluatorFn<O>
Functional interface for evaluator functions.

An evaluator function takes a data point and optional options, and returns an evaluation response containing scores.

  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(EvalDataPoint dataPoint, O options)
    Evaluates a single data point.
  • Method Details

    • evaluate

      EvalResponse evaluate(EvalDataPoint dataPoint, O options) throws Exception
      Evaluates a single data point.
      Parameters:
      dataPoint - the data point to evaluate
      options - optional evaluator-specific options
      Returns:
      the evaluation response
      Throws:
      Exception - if evaluation fails