|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.attributeSelection.ASEvaluation | +--weka.attributeSelection.AttributeEvaluator | +--weka.attributeSelection.OneRAttributeEval
Class for Evaluating attributes individually by using the OneR classifier.
No options.
Constructor Summary | |
OneRAttributeEval()
Constructor |
Method Summary | |
void |
buildEvaluator(Instances data)
Initializes an information gain attribute evaluator. |
double |
evaluateAttribute(int attribute)
evaluates an individual attribute by measuring the amount of information gained about the class given the attribute. |
java.lang.String |
globalInfo()
Returns a string describing this attribute evaluator |
static void |
main(java.lang.String[] args)
Main method for testing this class. |
protected void |
resetOptions()
rests to defaults. |
java.lang.String |
toString()
Return a description of the evaluator |
Methods inherited from class weka.attributeSelection.ASEvaluation |
forName, makeCopies, postProcess |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OneRAttributeEval()
Method Detail |
public java.lang.String globalInfo()
public void buildEvaluator(Instances data) throws java.lang.Exception
buildEvaluator
in class ASEvaluation
data
- set of instances serving as training datajava.lang.Exception
- if the evaluator has not been
generated successfullyprotected void resetOptions()
public double evaluateAttribute(int attribute) throws java.lang.Exception
evaluateAttribute
in class AttributeEvaluator
attribute
- the index of the attribute to be evaluatedjava.lang.Exception
- if the attribute could not be evaluatedpublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- the options
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |