adams.flow.transformer
Enum WekaClassifierRanker.Measure

java.lang.Object
  extended by java.lang.Enum<WekaClassifierRanker.Measure>
      extended by adams.flow.transformer.WekaClassifierRanker.Measure
All Implemented Interfaces:
EnumWithCustomDisplay<WekaClassifierRanker.Measure>, Serializable, Comparable<WekaClassifierRanker.Measure>
Enclosing class:
WekaClassifierRanker

public static enum WekaClassifierRanker.Measure
extends Enum<WekaClassifierRanker.Measure>
implements EnumWithCustomDisplay<WekaClassifierRanker.Measure>

The performance measure to use.

Version:
$Revision: 4665 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Enum Constant Summary
ACC
          evaluation via: Accuracy.
CC
          evaluation via: Correlation coefficient.
COMBINED
          evaluation via: Combined = ("", Performance.1-CC) + RRSE + RAE.
KAPPA
          evaluation via: Kappa statistic.
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
 int getMeasure()
          Returns the associated measure.
 WekaClassifierRanker.Measure parse(String s)
          Parses the given string and returns the associated enum.
 String toDisplay()
          Returns the display string.
 String toRaw()
          Returns the raw enum string.
 String toString()
          Returns the display string.
static String toString(AbstractOption option, Object object)
          Returns the enum as string.
static WekaClassifierRanker.Measure valueOf(AbstractOption option, String str)
          Returns an enum generated from the string.
static WekaClassifierRanker.Measure valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WekaClassifierRanker.Measure[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CC

public static final WekaClassifierRanker.Measure CC
evaluation via: Correlation coefficient.


RMSE

public static final WekaClassifierRanker.Measure RMSE
evaluation via: Root mean squared error.


RRSE

public static final WekaClassifierRanker.Measure RRSE
evaluation via: Root relative squared error.


MAE

public static final WekaClassifierRanker.Measure MAE
evaluation via: Mean absolute error.


RAE

public static final WekaClassifierRanker.Measure RAE
evaluation via: Relative absolute error.


COMBINED

public static final WekaClassifierRanker.Measure COMBINED
evaluation via: Combined = ("", Performance.1-CC) + RRSE + RAE.


ACC

public static final WekaClassifierRanker.Measure ACC
evaluation via: Accuracy.


KAPPA

public static final WekaClassifierRanker.Measure KAPPA
evaluation via: Kappa statistic.

Method Detail

values

public static WekaClassifierRanker.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 (WekaClassifierRanker.Measure c : WekaClassifierRanker.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 WekaClassifierRanker.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 name
NullPointerException - if the argument is null

getMeasure

public int getMeasure()
Returns the associated measure.

Returns:
the measure
See Also:
MultiSearch.TAGS_EVALUATION

toDisplay

public String toDisplay()
Returns the display string.

Specified by:
toDisplay in interface EnumWithCustomDisplay<WekaClassifierRanker.Measure>
Returns:
the display string

toRaw

public String toRaw()
Returns the raw enum string.

Specified by:
toRaw in interface EnumWithCustomDisplay<WekaClassifierRanker.Measure>
Returns:
the raw enum string

toString

public String toString()
Returns the display string.

Overrides:
toString in class Enum<WekaClassifierRanker.Measure>
Returns:
the display string

parse

public WekaClassifierRanker.Measure parse(String s)
Parses the given string and returns the associated enum.

Specified by:
parse in interface EnumWithCustomDisplay<WekaClassifierRanker.Measure>
Parameters:
s - the string to parse
Returns:
the enum or null if not found

toString

public static String toString(AbstractOption option,
                              Object object)
Returns the enum as string.

Parameters:
option - the current option
object - the enum object to convert
Returns:
the generated string

valueOf

public static WekaClassifierRanker.Measure valueOf(AbstractOption option,
                                                   String str)
Returns an enum generated from the string.

Parameters:
option - the current option
str - the string to convert to an enum
Returns:
the generated enum or null in case of error


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.