Class MetricTarget<T extends Output<T>>

java.lang.Object
org.tribuo.evaluation.metrics.MetricTarget<T>
Type Parameters:
T - The Output type.

public class MetricTarget<T extends Output<T>> extends Object
Used by a given EvaluationMetric to determine whether it should compute its value for a specific Output value or whether it should average them.
  • Constructor Details

    • MetricTarget

      public MetricTarget(T target)
      Builds a metric target for an output.
      Parameters:
      target - The output to target.
    • MetricTarget

      public MetricTarget(EvaluationMetric.Average avg)
      Builds a metric target for an average.
      Parameters:
      avg - The average to compute.
  • Method Details