Package org.nd4j.evaluation.custom
Class CustomEvaluation.Metric<T>
- java.lang.Object
-
- org.nd4j.evaluation.custom.CustomEvaluation.Metric<T>
-
- All Implemented Interfaces:
IMetric
- Enclosing class:
- CustomEvaluation<T>
public static class CustomEvaluation.Metric<T> extends Object implements IMetric
The metric used to get a score for the CustomEvaluation. Uses a ResultLambda
-
-
Constructor Summary
Constructors Constructor Description Metric()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomEvaluation.Metric<Double>
doubleAverage(boolean minimize)
A metric that takes the average of a list of doublesstatic CustomEvaluation.Metric<Double>
doubleMax(boolean minimize)
A metric that takes the max of a list of doublesstatic CustomEvaluation.Metric<Double>
doubleMin(boolean minimize)
A metric that takes the min of a list of doublesClass<? extends IEvaluation>
getEvaluationClass()
TheIEvaluation
class this metric is forboolean
minimize()
Whether this metric should be minimized (aka whether lower values are better).
-
-
-
Method Detail
-
getEvaluationClass
public Class<? extends IEvaluation> getEvaluationClass()
Description copied from interface:IMetric
TheIEvaluation
class this metric is for- Specified by:
getEvaluationClass
in interfaceIMetric
-
minimize
public boolean minimize()
Description copied from interface:IMetric
Whether this metric should be minimized (aka whether lower values are better).
-
doubleAverage
public static CustomEvaluation.Metric<Double> doubleAverage(boolean minimize)
A metric that takes the average of a list of doubles
-
doubleMax
public static CustomEvaluation.Metric<Double> doubleMax(boolean minimize)
A metric that takes the max of a list of doubles
-
doubleMin
public static CustomEvaluation.Metric<Double> doubleMin(boolean minimize)
A metric that takes the min of a list of doubles
-
-