|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uottawa.balie.WekaAttributeSelection
public class WekaAttributeSelection
Methods to select the top attributes from a given classification problem.
| Field Summary | |
|---|---|
static int |
DEFAULT_NUM_ATTRIBUTES
|
static int |
WEKA_CHI_SQUARE
|
static int |
WEKA_INFO_GAIN
|
static int |
WEKA_ONER
|
static int |
WEKA_RELIEF
|
static int |
WEKA_SVM
|
static int |
WEKA_SYM_UNCERT
|
static int |
WEKA_WRAPPER
|
| Constructor Summary | |
|---|---|
WekaAttributeSelection(int pi_Evaluator,
WekaAttribute[] pi_Attributes,
java.lang.String[] pi_ClassAttributes)
Creates an Attribute selection framework. |
|
| Method Summary | |
|---|---|
void |
AddInstance(java.lang.Object[] pi_Instance,
java.lang.String pi_Class)
Add an instance, that is a vector of value for all attributes. |
weka.core.FastVector |
GetAttribute()
|
java.lang.String[] |
GetAttributeList()
|
static void |
main(java.lang.String[] args)
Test routine. |
void |
NumAttributes(int pi_Num)
Sets the number of top attribute to select. |
java.lang.String[] |
ReduceDimentionality()
Gets the array of chosen attributes |
void |
Select(boolean pi_Debug)
Select the top attributes |
void |
SetDoubleOnly(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WEKA_CHI_SQUARE
public static final int WEKA_INFO_GAIN
public static final int WEKA_WRAPPER
public static final int WEKA_SYM_UNCERT
public static final int WEKA_SVM
public static final int WEKA_RELIEF
public static final int WEKA_ONER
public static final int DEFAULT_NUM_ATTRIBUTES
| Constructor Detail |
|---|
public WekaAttributeSelection(int pi_Evaluator,
WekaAttribute[] pi_Attributes,
java.lang.String[] pi_ClassAttributes)
pi_Evaluator - Type of evaluation of attributes meritpi_Attributes - The attributes to evaluatepi_ClassAttributes - The class attribute| Method Detail |
|---|
public void AddInstance(java.lang.Object[] pi_Instance,
java.lang.String pi_Class)
pi_Instance - The instance, an array of objects (can mix numeric and nominal attributes - see WekaAttribute)pi_Class - The class for this instanceWekaAttributepublic void NumAttributes(int pi_Num)
pi_Num - Num of attributes to selectpublic java.lang.String[] GetAttributeList()
public weka.core.FastVector GetAttribute()
public void SetDoubleOnly(boolean b)
public void Select(boolean pi_Debug)
public java.lang.String[] ReduceDimentionality()
WekaAttribute).WekaAttributepublic static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||