Package adams.flow.core
Enum EvaluationStatistic
- java.lang.Object
-
- java.lang.Enum<EvaluationStatistic>
-
- adams.flow.core.EvaluationStatistic
-
- All Implemented Interfaces:
adams.core.EnumWithCustomDisplay<EvaluationStatistic>
,adams.core.EnumWithCustomParsing<EvaluationStatistic>
,Serializable
,Comparable<EvaluationStatistic>
public enum EvaluationStatistic extends Enum<EvaluationStatistic> implements adams.core.EnumWithCustomDisplay<EvaluationStatistic>
The enumeration for the comparison field.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description protected Boolean
m_OnlyNominal
whether applies only to nominal classes or not.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getField()
Returns the display string without the "numeric" or "nominal" in parentheses.boolean
isOnlyNominal()
Returns whether the statistic applies to nominal attributes only.boolean
isOnlyNumeric()
Returns whether the statistic applies to numeric attributes only.boolean
isPerClass()
Returns whether the statistic is a per-class one.EvaluationStatistic
parse(String s)
Parses the given string and returns the associated enum.String
toDisplay()
Returns the display string, including nominal/numeric if it applies.String
toDisplayShort()
Returns the display string.String
toRaw()
Returns the raw enum string.String
toString()
Returns the displays string.static String
toString(adams.core.option.AbstractOption option, Object object)
Returns the enum as string.static EvaluationStatistic
valueOf(adams.core.option.AbstractOption option, String str)
Returns an enum generated from the string.static EvaluationStatistic
valueOf(String name)
Returns the enum constant of this type with the specified name.static EvaluationStatistic[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER_CORRECT
public static final EvaluationStatistic NUMBER_CORRECT
-
NUMBER_INCORRECT
public static final EvaluationStatistic NUMBER_INCORRECT
-
NUMBER_UNCLASSIFIED
public static final EvaluationStatistic NUMBER_UNCLASSIFIED
-
PERCENT_CORRECT
public static final EvaluationStatistic PERCENT_CORRECT
-
PERCENT_INCORRECT
public static final EvaluationStatistic PERCENT_INCORRECT
-
PERCENT_UNCLASSIFIED
public static final EvaluationStatistic PERCENT_UNCLASSIFIED
-
KAPPA_STATISTIC
public static final EvaluationStatistic KAPPA_STATISTIC
-
MEAN_ABSOLUTE_ERROR
public static final EvaluationStatistic MEAN_ABSOLUTE_ERROR
-
ROOT_MEAN_SQUARED_ERROR
public static final EvaluationStatistic ROOT_MEAN_SQUARED_ERROR
-
RELATIVE_ABSOLUTE_ERROR
public static final EvaluationStatistic RELATIVE_ABSOLUTE_ERROR
-
ROOT_RELATIVE_SQUARED_ERROR
public static final EvaluationStatistic ROOT_RELATIVE_SQUARED_ERROR
-
CORRELATION_COEFFICIENT
public static final EvaluationStatistic CORRELATION_COEFFICIENT
-
SF_PRIOR_ENTROPY
public static final EvaluationStatistic SF_PRIOR_ENTROPY
-
SF_SCHEME_ENTROPY
public static final EvaluationStatistic SF_SCHEME_ENTROPY
-
SF_ENTROPY_GAIN
public static final EvaluationStatistic SF_ENTROPY_GAIN
-
SF_MEAN_PRIOR_ENTROPY
public static final EvaluationStatistic SF_MEAN_PRIOR_ENTROPY
-
SF_MEAN_SCHEME_ENTROPY
public static final EvaluationStatistic SF_MEAN_SCHEME_ENTROPY
-
SF_MEAN_ENTROPY_GAIN
public static final EvaluationStatistic SF_MEAN_ENTROPY_GAIN
-
KB_INFORMATION
public static final EvaluationStatistic KB_INFORMATION
-
KB_MEAN_INFORMATION
public static final EvaluationStatistic KB_MEAN_INFORMATION
-
KB_RELATIVE_INFORMATION
public static final EvaluationStatistic KB_RELATIVE_INFORMATION
-
TRUE_POSITIVE_RATE
public static final EvaluationStatistic TRUE_POSITIVE_RATE
-
NUM_TRUE_POSITIVES
public static final EvaluationStatistic NUM_TRUE_POSITIVES
-
FALSE_POSITIVE_RATE
public static final EvaluationStatistic FALSE_POSITIVE_RATE
-
NUM_FALSE_POSITIVES
public static final EvaluationStatistic NUM_FALSE_POSITIVES
-
TRUE_NEGATIVE_RATE
public static final EvaluationStatistic TRUE_NEGATIVE_RATE
-
NUM_TRUE_NEGATIVES
public static final EvaluationStatistic NUM_TRUE_NEGATIVES
-
FALSE_NEGATIVE_RATE
public static final EvaluationStatistic FALSE_NEGATIVE_RATE
-
NUM_FALSE_NEGATIVES
public static final EvaluationStatistic NUM_FALSE_NEGATIVES
-
IR_PRECISION
public static final EvaluationStatistic IR_PRECISION
-
IR_RECALL
public static final EvaluationStatistic IR_RECALL
-
F_MEASURE
public static final EvaluationStatistic F_MEASURE
-
MATTHEWS_CORRELATION_COEFFICIENT
public static final EvaluationStatistic MATTHEWS_CORRELATION_COEFFICIENT
-
AREA_UNDER_ROC
public static final EvaluationStatistic AREA_UNDER_ROC
-
AREA_UNDER_PRC
public static final EvaluationStatistic AREA_UNDER_PRC
-
WEIGHTED_TRUE_POSITIVE_RATE
public static final EvaluationStatistic WEIGHTED_TRUE_POSITIVE_RATE
-
WEIGHTED_FALSE_POSITIVE_RATE
public static final EvaluationStatistic WEIGHTED_FALSE_POSITIVE_RATE
-
WEIGHTED_TRUE_NEGATIVE_RATE
public static final EvaluationStatistic WEIGHTED_TRUE_NEGATIVE_RATE
-
WEIGHTED_FALSE_NEGATIVE_RATE
public static final EvaluationStatistic WEIGHTED_FALSE_NEGATIVE_RATE
-
WEIGHTED_IR_PRECISION
public static final EvaluationStatistic WEIGHTED_IR_PRECISION
-
WEIGHTED_IR_RECALL
public static final EvaluationStatistic WEIGHTED_IR_RECALL
-
WEIGHTED_F_MEASURE
public static final EvaluationStatistic WEIGHTED_F_MEASURE
-
WEIGHTED_MATTHEWS_CORRELATION_COEFFICIENT
public static final EvaluationStatistic WEIGHTED_MATTHEWS_CORRELATION_COEFFICIENT
-
WEIGHTED_AREA_UNDER_ROC
public static final EvaluationStatistic WEIGHTED_AREA_UNDER_ROC
-
WEIGHTED_AREA_UNDER_PRC
public static final EvaluationStatistic WEIGHTED_AREA_UNDER_PRC
-
UNWEIGHTED_MACRO_F_MEASURE
public static final EvaluationStatistic UNWEIGHTED_MACRO_F_MEASURE
-
UNWEIGHTED_MICRO_F_MEASURE
public static final EvaluationStatistic UNWEIGHTED_MICRO_F_MEASURE
-
BIAS
public static final EvaluationStatistic BIAS
-
MSLE
public static final EvaluationStatistic MSLE
-
RSQUARED
public static final EvaluationStatistic RSQUARED
-
SDR
public static final EvaluationStatistic SDR
-
RPD
public static final EvaluationStatistic RPD
-
-
Field Detail
-
m_OnlyNominal
protected Boolean m_OnlyNominal
whether applies only to nominal classes or not.
-
-
Method Detail
-
values
public static EvaluationStatistic[] 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 (EvaluationStatistic c : EvaluationStatistic.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvaluationStatistic 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
-
isPerClass
public boolean isPerClass()
Returns whether the statistic is a per-class one.- Returns:
- true if per class
-
isOnlyNominal
public boolean isOnlyNominal()
Returns whether the statistic applies to nominal attributes only.- Returns:
- true if only for nominal attributes
-
isOnlyNumeric
public boolean isOnlyNumeric()
Returns whether the statistic applies to numeric attributes only.- Returns:
- true if only for numeric attributes
-
toDisplay
public String toDisplay()
Returns the display string, including nominal/numeric if it applies.- Specified by:
toDisplay
in interfaceadams.core.EnumWithCustomDisplay<EvaluationStatistic>
- Returns:
- the display string
-
toDisplayShort
public String toDisplayShort()
Returns the display string.- Returns:
- the display string
-
toRaw
public String toRaw()
Returns the raw enum string.- Specified by:
toRaw
in interfaceadams.core.EnumWithCustomDisplay<EvaluationStatistic>
- Returns:
- the raw enum string
-
parse
public EvaluationStatistic parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parse
in interfaceadams.core.EnumWithCustomParsing<EvaluationStatistic>
- Parameters:
s
- the string to parse- Returns:
- the enum or null if not found
-
getField
public String getField()
Returns the display string without the "numeric" or "nominal" in parentheses.- Returns:
- the field string
-
toString
public String toString()
Returns the displays string.- Overrides:
toString
in classEnum<EvaluationStatistic>
- Returns:
- the display string
-
toString
public static String toString(adams.core.option.AbstractOption option, Object object)
Returns the enum as string.- Parameters:
option
- the current optionobject
- the enum object to convert- Returns:
- the generated string
-
valueOf
public static EvaluationStatistic valueOf(adams.core.option.AbstractOption option, String str)
Returns an enum generated from the string.- Parameters:
option
- the current optionstr
- the string to convert to an enum- Returns:
- the generated enum or null in case of error
-
-