public abstract class MetricFactory<T>
extends java.lang.Object
Constructor and Description |
---|
MetricFactory() |
Modifier and Type | Method and Description |
---|---|
abstract Metric<T> |
createMetric(TrainTestEvalTask task) |
static <T> MetricFactory<T> |
forMetric(Metric<T> m)
Create a metric factory that returns the provided pre-instantiated metric.
|
abstract java.util.List<java.lang.String> |
getColumnLabels() |
abstract java.util.List<java.lang.String> |
getUserColumnLabels() |
public abstract Metric<T> createMetric(TrainTestEvalTask task) throws java.io.IOException
java.io.IOException
public abstract java.util.List<java.lang.String> getColumnLabels()
public abstract java.util.List<java.lang.String> getUserColumnLabels()
public static <T> MetricFactory<T> forMetric(Metric<T> m)
m
- The metric.m
.