Enum ROCMultiClass.Metric
- java.lang.Object
-
- java.lang.Enum<ROCMultiClass.Metric>
-
- org.nd4j.evaluation.classification.ROCMultiClass.Metric
-
- All Implemented Interfaces:
Serializable
,Comparable<ROCMultiClass.Metric>
,IMetric
- Enclosing class:
- ROCMultiClass
public static enum ROCMultiClass.Metric extends Enum<ROCMultiClass.Metric> implements IMetric
AUROC: Area under ROC curve
AUPRC: Area under Precision-Recall Curve
-
-
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 ROCMultiClass.Metric
valueOf(String name)
Returns the enum constant of this type with the specified name.static ROCMultiClass.Metric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUROC
public static final ROCMultiClass.Metric AUROC
-
AUPRC
public static final ROCMultiClass.Metric AUPRC
-
-
Method Detail
-
values
public static ROCMultiClass.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 (ROCMultiClass.Metric c : ROCMultiClass.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 ROCMultiClass.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
-
-