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)

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 main(String[])
Main method for testing this class.
 o toString()
Return a description of the evaluator

Constructors

 o OneRAttributeEval
 public OneRAttributeEval()
Constructor

Methods

 o 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
 o 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
 o toString
 public String toString()
Return a description of the evaluator

Returns:
description as a string
Overrides:
toString in class Object
 o 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