类 CostSensitiveSubsetEval
java.lang.Object
weka.attributeSelection.ASEvaluation
weka.attributeSelection.CostSensitiveASEvaluation
weka.attributeSelection.CostSensitiveSubsetEval
public class CostSensitiveSubsetEval
extends CostSensitiveASEvaluation
implements Serializable, SubsetEvaluator, OptionHandler
A meta subset evaluator that makes its base subset evaluator cost-sensitive.
Valid options are:
-C <cost file name> File name of a cost matrix to use. If this is not supplied, a cost matrix will be loaded on demand. The name of the on-demand file is the relation name of the training data plus ".cost", and the path to the on-demand file is specified with the -N option.
-N <directory> Name of a directory to search for cost files when loading costs on demand (default current directory).
-cost-matrix <matrix> The cost matrix in Matlab single line format.
-S <integer> The seed to use for random number generation.
-W Full name of base evaluator. (default: weka.attributeSelection.CfsSubsetEval)
Options specific to evaluator weka.attributeSelection.CfsSubsetEval:
-M Treat missing values as a seperate value.
-L Don't include locally predictive attributes.
- 版本:
- $Revision: 5562 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- 另请参阅:
-
字段概要
从类继承的字段 weka.attributeSelection.CostSensitiveASEvaluation
MATRIX_ON_DEMAND, MATRIX_SUPPLIED, TAGS_MATRIX_SOURCE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明double
evaluateSubset
(BitSet subset) Evaluates a subset of attributes.Returns the revision string.static void
Main method for testing this class.void
setEvaluator
(ASEvaluation newEvaluator) Set the base evaluator.从类继承的方法 weka.attributeSelection.CostSensitiveASEvaluation
buildEvaluator, costMatrixSourceTipText, costMatrixTipText, defaultEvaluatorString, evaluatorTipText, getCapabilities, getCostMatrix, getCostMatrixSource, getEvaluator, getOnDemandDirectory, getOptions, getSeed, globalInfo, listOptions, onDemandDirectoryTipText, postProcess, seedTipText, setCostMatrix, setCostMatrixSource, setOnDemandDirectory, setOptions, setSeed, toString
从类继承的方法 weka.attributeSelection.ASEvaluation
clean, forName, makeCopies
从接口继承的方法 weka.core.OptionHandler
getOptions, listOptions, setOptions
-
构造器详细资料
-
CostSensitiveSubsetEval
public CostSensitiveSubsetEval()Default constructor.
-
-
方法详细资料
-
setEvaluator
Set the base evaluator.- 覆盖:
setEvaluator
在类中CostSensitiveASEvaluation
- 参数:
newEvaluator
- the evaluator to use.- 抛出:
IllegalArgumentException
- if the evaluator is not an instance of SubsetEvaluator
-
evaluateSubset
Evaluates a subset of attributes. Delegates the actual evaluation to the base subset evaluator.- 指定者:
evaluateSubset
在接口中SubsetEvaluator
- 参数:
subset
- a bitset representing the attribute subset to be evaluated- 返回:
- the "merit" of the subset
- 抛出:
Exception
- if the subset could not be evaluated
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中CostSensitiveASEvaluation
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
args
- the options
-