Enum AbstractWEKAFitnessFunction.Measure
- java.lang.Object
-
- java.lang.Enum<AbstractWEKAFitnessFunction.Measure>
-
- adams.opt.optimise.genetic.fitnessfunctions.AbstractWEKAFitnessFunction.Measure
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractWEKAFitnessFunction.Measure>
- Enclosing class:
- AbstractWEKAFitnessFunction
public static enum AbstractWEKAFitnessFunction.Measure extends Enum<AbstractWEKAFitnessFunction.Measure>
The measure to use for evaluating.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACC
evaluation via: Accuracy.CC
evaluation via: Correlation coefficient.MAE
evaluation via: Mean absolute error.RAE
evaluation via: Relative absolute error.RMSE
evaluation via: Root mean squared error.RRSE
evaluation via: Root relative squared error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
adjust(double measure)
Adjusts the measure value for sorting: either multiplies it with -1 or 1.boolean
isValid(weka.core.Instances data)
Checks whether the data can be used with this measure.static AbstractWEKAFitnessFunction.Measure
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractWEKAFitnessFunction.Measure[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CC
public static final AbstractWEKAFitnessFunction.Measure CC
evaluation via: Correlation coefficient.
-
RMSE
public static final AbstractWEKAFitnessFunction.Measure RMSE
evaluation via: Root mean squared error.
-
RRSE
public static final AbstractWEKAFitnessFunction.Measure RRSE
evaluation via: Root relative squared error.
-
MAE
public static final AbstractWEKAFitnessFunction.Measure MAE
evaluation via: Mean absolute error.
-
RAE
public static final AbstractWEKAFitnessFunction.Measure RAE
evaluation via: Relative absolute error.
-
ACC
public static final AbstractWEKAFitnessFunction.Measure ACC
evaluation via: Accuracy.
-
-
Method Detail
-
values
public static AbstractWEKAFitnessFunction.Measure[] 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 (AbstractWEKAFitnessFunction.Measure c : AbstractWEKAFitnessFunction.Measure.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractWEKAFitnessFunction.Measure 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
-
adjust
public double adjust(double measure)
Adjusts the measure value for sorting: either multiplies it with -1 or 1.- Parameters:
measure
- the raw measure- Returns:
- the adjusted measure
-
isValid
public boolean isValid(weka.core.Instances data)
Checks whether the data can be used with this measure.- Parameters:
data
- the data to check- Returns:
- true if the measure can be obtain for this kind of data
-
-