Package org.tribuo.evaluation.metrics
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 Summary
-
Method Summary
Methods inherited from class com.oracle.labs.mlrg.olcut.util.Pair
equals, getA, getB, hashCode, zipArrays
-
Constructor Details
-
MetricID
Constructs a metric id.- Parameters:
target
- The metric target.metricName
- The name of the metric.
-
-
Method Details
-
toString
- Overrides:
toString
in classcom.oracle.labs.mlrg.olcut.util.Pair<MetricTarget<T extends Output<T>>,
String>
-