public static enum Evaluation.Metric extends Enum<Evaluation.Metric> implements IMetric
Enum Constant and Description |
---|
ACCURACY |
F1 |
GMEASURE |
MCC |
PRECISION |
RECALL |
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 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.
|
public static final Evaluation.Metric ACCURACY
public static final Evaluation.Metric F1
public static final Evaluation.Metric PRECISION
public static final Evaluation.Metric RECALL
public static final Evaluation.Metric GMEASURE
public static final Evaluation.Metric MCC
public static Evaluation.Metric[] values()
for (Evaluation.Metric c : Evaluation.Metric.values()) System.out.println(c);
public static Evaluation.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
Copyright © 2020. All rights reserved.