Package org.nd4j.evaluation.regression
Enum RegressionEvaluation.Metric
- java.lang.Object
-
- java.lang.Enum<RegressionEvaluation.Metric>
-
- org.nd4j.evaluation.regression.RegressionEvaluation.Metric
-
- All Implemented Interfaces:
Serializable
,Comparable<RegressionEvaluation.Metric>
,IMetric
- Enclosing class:
- RegressionEvaluation
public static enum RegressionEvaluation.Metric extends Enum<RegressionEvaluation.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 RegressionEvaluation.Metric
valueOf(String name)
Returns the enum constant of this type with the specified name.static RegressionEvaluation.Metric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MSE
public static final RegressionEvaluation.Metric MSE
-
MAE
public static final RegressionEvaluation.Metric MAE
-
RMSE
public static final RegressionEvaluation.Metric RMSE
-
RSE
public static final RegressionEvaluation.Metric RSE
-
PC
public static final RegressionEvaluation.Metric PC
-
R2
public static final RegressionEvaluation.Metric R2
-
-
Method Detail
-
values
public static RegressionEvaluation.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 (RegressionEvaluation.Metric c : RegressionEvaluation.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 RegressionEvaluation.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
-
minimize
public boolean minimize()
Description copied from interface:IMetric
Whether this metric should be minimized (aka whether lower values are better).
-
-