Class MetricID<T extends Output<T>>

java.lang.Object
com.oracle.labs.mlrg.olcut.util.Pair<MetricTarget<T>,String>
org.tribuo.evaluation.metrics.MetricID<T>
Type Parameters:
T - The type of output.
All Implemented Interfaces:
Serializable

public final class MetricID<T extends Output<T>> extends com.oracle.labs.mlrg.olcut.util.Pair<MetricTarget<T>,String>
Just an easier-to-read alias for Pair<MetricTarget<T>, String>.

Used as a key in metric result maps. See Evaluation.asMap().

See Also:
  • Constructor Details

    • MetricID

      public MetricID(MetricTarget<T> target, String metricName)
      Constructs a metric id.
      Parameters:
      target - The metric target.
      metricName - The name of the metric.
  • Method Details