Package org.nd4j.evaluation.custom
Class CustomEvaluation<T>
- java.lang.Object
-
- org.nd4j.evaluation.BaseEvaluation<CustomEvaluation>
-
- org.nd4j.evaluation.custom.CustomEvaluation<T>
-
- All Implemented Interfaces:
Serializable,IEvaluation<CustomEvaluation>
public class CustomEvaluation<T> extends BaseEvaluation<CustomEvaluation>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomEvaluation.Metric<T>The metric used to get a score for the CustomEvaluation.
-
Constructor Summary
Constructors Constructor Description CustomEvaluation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voideval(INDArray labels, INDArray networkPredictions, INDArray maskArray, List<? extends Serializable> recordMetaData)doublegetValue(IMetric metric)Get the value of a given metric for this evaluation.voidmerge(CustomEvaluation other)static <R> MergeLambda<R>mergeConcatenate()A MergeLambda that merges by concatenating the two listsCustomEvaluation<T>newInstance()Get a new instance of this evaluation, with the same configuration but no data.voidreset()Stringstats()-
Methods inherited from class org.nd4j.evaluation.BaseEvaluation
attempFromLegacyFromJson, eval, eval, eval, evalTimeSeries, evalTimeSeries, fromJson, fromYaml, reshapeAndExtractNotMasked, toJson, toString, toYaml
-
-
-
-
Method Detail
-
mergeConcatenate
public static <R> MergeLambda<R> mergeConcatenate()
A MergeLambda that merges by concatenating the two lists
-
eval
public void eval(INDArray labels, INDArray networkPredictions, INDArray maskArray, List<? extends Serializable> recordMetaData)
-
merge
public void merge(CustomEvaluation other)
-
reset
public void reset()
-
stats
public String stats()
- Returns:
-
getValue
public double getValue(IMetric metric)
Description copied from interface:IEvaluationGet the value of a given metric for this evaluation.
-
newInstance
public CustomEvaluation<T> newInstance()
Description copied from interface:IEvaluationGet a new instance of this evaluation, with the same configuration but no data.
-
-