|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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. |
String |
globalInfo()
Returns a string describing this attribute evaluator |
static void |
main(String[] args)
Main method for testing this class. |
protected void |
resetOptions()
rests to defaults. |
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 String globalInfo()
public void buildEvaluator(Instances data) throws Exception
buildEvaluator
in class ASEvaluation
data
- set of instances serving as training data
Exception
- if the evaluator has not been
generated successfullyprotected void resetOptions()
public double evaluateAttribute(int attribute) throws Exception
evaluateAttribute
in class AttributeEvaluator
attribute
- the index of the attribute to be evaluated
Exception
- if the attribute could not be evaluatedpublic String toString()
toString
in class Object
public static void main(String[] args)
args
- the options
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |