public static enum RoccaContourDataBlock.PosSweepIndx extends java.lang.Enum<RoccaContourDataBlock.PosSweepIndx>
The WEKA random forest classifier code stores all attributes as double values. For nominal attributes, WEKA assumes that the stored value refers to the INDEX of the corresponding value. For example, the FREQBEGUP attribute can be true (yes, the slope is positive) or false (no, the slope is not positive). The training dataset uses the values "0" to indicate false, and "1" to indicate true. When the classifier is created, it stores these nominal values in an array of length 2, with array index 0 being 0 (false), and index 1 being 1 (true). When an instance gets passed to the classifier for classification, it assumes that the value stored in the attribute refers to the index position (0 or 1), NOT the actual nominal value (0/false or 1/true). So this enum field is used to map the nominal false-true values to the corresponding array indices used to train the classifier.
IMPORTANT NOTE:
Right now, this doesn't matter because the potential values 0 and 1 coincidentally match the array indices 0 and 1. But if the order or potential values of the nominal attribute ever change, this enum MUST CHANGE TO MATCH. For example, if false-true are ever reordered in the training set to true-false, the SweepIndx enum needs to be changed to true=0 and false=1. Similarly, if 'maybe' is added to the list as false-maybe-true (using the values -1, 0, and 1 respectively), SweepIndx needs to be changed to false=0, maybe=1 and true=2.
Modifier and Type | Method and Description |
---|---|
int |
getIndx() |
static RoccaContourDataBlock.PosSweepIndx |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RoccaContourDataBlock.PosSweepIndx[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoccaContourDataBlock.PosSweepIndx FALSE
public static final RoccaContourDataBlock.PosSweepIndx TRUE
public static RoccaContourDataBlock.PosSweepIndx[] values()
for (RoccaContourDataBlock.PosSweepIndx c : RoccaContourDataBlock.PosSweepIndx.values()) System.out.println(c);
public static RoccaContourDataBlock.PosSweepIndx valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getIndx()