Enum Evaluation.Metric
- java.lang.Object
-
- java.lang.Enum<Evaluation.Metric>
-
- org.nd4j.evaluation.classification.Evaluation.Metric
-
- All Implemented Interfaces:
Serializable
,Comparable<Evaluation.Metric>
,IMetric
- Enclosing class:
- Evaluation
public static enum Evaluation.Metric extends Enum<Evaluation.Metric> implements IMetric
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends IEvaluation>
getEvaluationClass()
TheIEvaluation
class this metric is forboolean
minimize()
Whether this metric should be minimized (aka whether lower values are better).static Evaluation.Metric
valueOf(String name)
Returns the enum constant of this type with the specified name.static Evaluation.Metric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCURACY
public static final Evaluation.Metric ACCURACY
-
F1
public static final Evaluation.Metric F1
-
PRECISION
public static final Evaluation.Metric PRECISION
-
RECALL
public static final Evaluation.Metric RECALL
-
GMEASURE
public static final Evaluation.Metric GMEASURE
-
MCC
public static final Evaluation.Metric MCC
-
-
Method Detail
-
values
public static Evaluation.Metric[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Evaluation.Metric c : Evaluation.Metric.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Evaluation.Metric valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getEvaluationClass
public Class<? extends IEvaluation> getEvaluationClass()
Description copied from interface:IMetric
TheIEvaluation
class this metric is for- Specified by:
getEvaluationClass
in interfaceIMetric
-
-