类 HoldOutSubsetEvaluator
java.lang.Object
weka.attributeSelection.ASEvaluation
weka.attributeSelection.HoldOutSubsetEvaluator
- 所有已实现的接口:
Serializable
,SubsetEvaluator
,CapabilitiesHandler
,RevisionHandler
- 直接已知子类:
ClassifierSubsetEval
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.
- 版本:
- $Revision: 1.7 $
- 作者:
- Mark Hall (mhall@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract double
evaluateSubset
(BitSet subset, Instance holdOut, boolean retrain) Evaluates a subset of attributes with respect to a single instance.abstract double
evaluateSubset
(BitSet subset, Instances holdOut) Evaluates a subset of attributes with respect to a set of instances.从类继承的方法 weka.attributeSelection.ASEvaluation
buildEvaluator, clean, forName, getCapabilities, getRevision, makeCopies, postProcess
从接口继承的方法 weka.attributeSelection.SubsetEvaluator
evaluateSubset
-
构造器详细资料
-
HoldOutSubsetEvaluator
public HoldOutSubsetEvaluator()
-
-
方法详细资料
-
evaluateSubset
Evaluates a subset of attributes with respect to a set of instances.- 参数:
subset
- a bitset representing the attribute subset to be evaluatedholdOut
- 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- 返回:
- the "merit" of the subset on the holdOut data
- 抛出:
Exception
- if the subset cannot be evaluated
-
evaluateSubset
public abstract double evaluateSubset(BitSet subset, Instance holdOut, boolean retrain) throws Exception Evaluates a subset of attributes with respect to a single instance.- 参数:
subset
- a bitset representing the attribute subset to be evaluatedholdOut
- a single instance (possibly not one of those used to build/train the evaluator) with which to evaluate the merit of the subsetretrain
- true if the classifier should be retrained with respect to the new subset before testing on the holdOut instance.- 返回:
- the "merit" of the subset on the holdOut instance
- 抛出:
Exception
- if the subset cannot be evaluated
-