All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.attributeSelection.OneRAttributeEval
java.lang.Object
|
+----weka.attributeSelection.ASEvaluation
|
+----weka.attributeSelection.AttributeEvaluator
|
+----weka.attributeSelection.OneRAttributeEval
- public class OneRAttributeEval
- extends AttributeEvaluator
Class for Evaluating attributes individually by using the OneR
classifier.
No options.
- Version:
- $Revision: 1.4 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
-
OneRAttributeEval()
- Constructor
-
buildEvaluator(Instances)
- Initializes an information gain attribute evaluator.
-
evaluateAttribute(int)
- evaluates an individual attribute by measuring the amount
of information gained about the class given the attribute.
-
main(String[])
- Main method for testing this class.
-
toString()
- Return a description of the evaluator
OneRAttributeEval
public OneRAttributeEval()
- Constructor
buildEvaluator
public void buildEvaluator(Instances data) throws Exception
- Initializes an information gain attribute evaluator.
Discretizes all attributes that are numeric.
- Parameters:
- data - set of instances serving as training data
- Throws: Exception
- if the evaluator has not been
generated successfully
- Overrides:
- buildEvaluator in class ASEvaluation
evaluateAttribute
public double evaluateAttribute(int attribute) throws Exception
- evaluates an individual attribute by measuring the amount
of information gained about the class given the attribute.
- Parameters:
- attribute - the index of the attribute to be evaluated
- Throws: Exception
- if the attribute could not be evaluated
- Overrides:
- evaluateAttribute in class AttributeEvaluator
toString
public String toString()
- Return a description of the evaluator
- Returns:
- description as a string
- Overrides:
- toString in class Object
main
public static void main(String args[])
- Main method for testing this class.
- Parameters:
- args - the options
All Packages Class Hierarchy This Package Previous Next Index WEKA's home