public static enum RegressionEvaluation.Metric extends Enum<RegressionEvaluation.Metric> implements IMetric
Modifier and Type | Method and Description |
---|---|
Class<? extends IEvaluation> |
getEvaluationClass()
The
IEvaluation class this metric is for |
boolean |
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.
|
public static final RegressionEvaluation.Metric MSE
public static final RegressionEvaluation.Metric MAE
public static final RegressionEvaluation.Metric RMSE
public static final RegressionEvaluation.Metric RSE
public static final RegressionEvaluation.Metric PC
public static final RegressionEvaluation.Metric R2
public static RegressionEvaluation.Metric[] values()
for (RegressionEvaluation.Metric c : RegressionEvaluation.Metric.values()) System.out.println(c);
public static RegressionEvaluation.Metric valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<? extends IEvaluation> getEvaluationClass()
IMetric
IEvaluation
class this metric is forgetEvaluationClass
in interface IMetric
public boolean minimize()
IMetric
Copyright © 2020. All rights reserved.