All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.attributeSelection.HoldOutSubsetEvaluator

java.lang.Object
   |
   +----weka.attributeSelection.ASEvaluation
           |
           +----weka.attributeSelection.SubsetEvaluator
                   |
                   +----weka.attributeSelection.HoldOutSubsetEvaluator

public abstract class HoldOutSubsetEvaluator
extends SubsetEvaluator
Abstract attribute subset evaluator capable of evaluating subsets with respect to a data set that is distinct from that used to initialize/ train the subset evaluator.

Author:
Mark Hall (mhall@cs.waikato.ac.nz)

Constructor Index

 o HoldOutSubsetEvaluator()

Method Index

 o evaluateSubset(BitSet, Instance, boolean)
Evaluates a subset of attributes with respect to a single instance.
 o evaluateSubset(BitSet, Instances)
Evaluates a subset of attributes with respect to a set of instances.

Constructors

 o HoldOutSubsetEvaluator
 public HoldOutSubsetEvaluator()

Methods

 o evaluateSubset
 public abstract double evaluateSubset(BitSet subset,
                                       Instances holdOut) throws Exception
Evaluates a subset of attributes with respect to a set of instances.

Parameters:
subset - a bitset representing the attribute subset to be evaluated
holdOut - a set of instances (possibly seperate and distinct from those use to build/train the evaluator) with which to evaluate the merit of the subset
Returns:
the "merit" of the subset on the holdOut data
Throws: Exception
if the subset cannot be evaluated
 o evaluateSubset
 public abstract double evaluateSubset(BitSet subset,
                                       Instance holdOut,
                                       boolean retrain) throws Exception
Evaluates a subset of attributes with respect to a single instance.

Parameters:
subset - a bitset representing the attribute subset to be evaluated
holdOut - a single instance (possibly not one of those used to build/train the evaluator) with which to evaluate the merit of the subset
retrain - true if the classifier should be retrained with respect to the new subset before testing on the holdOut instance.
Returns:
the "merit" of the subset on the holdOut instance
Throws: Exception
if the subset cannot be evaluated

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home