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)

Constructor Index

 o OneRAttributeEval()
Constructor

Method Index

 o buildEvaluator(Instances)
Initializes an information gain attribute evaluator.
 o evaluateAttribute(int)
evaluates an individual attribute by measuring the amount of information gained about the class given the attribute.
 o globalInfo()
Returns a string describing this attribute evaluator
 o main(String[])
Main method for testing this class.
 o toString()
Return a description of the evaluator

Constructor Detail

 o OneRAttributeEval
public OneRAttributeEval()
          Constructor

Method Detail

 o 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
 o 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
 o 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
 o toString
public java.lang.String toString()
          Return a description of the evaluator
Returns:
description as a string
Overrides:
toString in class java.lang.Object
 o 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