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.8 $
- 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.
globalInfo()
- Returns a string describing this attribute evaluator
main(String[])
- Main method for testing this class.
toString()
- Return a description of the evaluator
OneRAttributeEval
public OneRAttributeEval()
Constructor
globalInfo
public java.lang.String globalInfo()
Returns a string describing this attribute evaluator
- Returns:
- a description of the evaluator suitable for
displaying in the explorer/experimenter gui
buildEvaluator
public void buildEvaluator(Instances data) throws java.lang.Exception
Initializes an information gain attribute evaluator.
Discretizes all attributes that are numeric.
- Parameters:
data
- set of instances serving as training data
- Throws:
- java.lang.Exception - if the evaluator has not been
generated successfully
- Overrides:
- buildEvaluator in class ASEvaluation
evaluateAttribute
public double evaluateAttribute(int attribute) throws java.lang.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:
- java.lang.Exception - if the attribute could not be evaluated
- Overrides:
- evaluateAttribute in class AttributeEvaluator
toString
public java.lang.String toString()
Return a description of the evaluator
- Returns:
- description as a string
- Overrides:
- toString in class java.lang.Object
main
public static void main(java.lang.String args[])
Main method for testing this class.
- Parameters:
args
- the options
All Packages Class Hierarchy This Package Previous Next Index WEKA's home