public abstract class MetricFactory<T> extends 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.
|
static <T> MetricFactory<T> |
forMetricClass(Class<? extends Metric<T>> m)
Create a metric factory that wraps a class.
|
abstract List<String> |
getColumnLabels() |
abstract List<String> |
getUserColumnLabels() |
public abstract Metric<T> createMetric(TrainTestEvalTask task) throws IOException
IOExceptionpublic static <T> MetricFactory<T> forMetric(Metric<T> m)
m - The metric.m.public static <T> MetricFactory<T> forMetricClass(Class<? extends Metric<T>> m)
m - The metric class.m.