类 CfsSubsetEval
java.lang.Object
weka.attributeSelection.ASEvaluation
weka.attributeSelection.CfsSubsetEval
- 所有已实现的接口:
Serializable
,SubsetEvaluator
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
public class CfsSubsetEval
extends ASEvaluation
implements SubsetEvaluator, OptionHandler, TechnicalInformationHandler
CfsSubsetEval :
Evaluates the worth of a subset of attributes by considering the individual predictive ability of each feature along with the degree of redundancy between them.
Subsets of features that are highly correlated with the class while having low intercorrelation are preferred.
For more information see:
M. A. Hall (1998). Correlation-based Feature Subset Selection for Machine Learning. Hamilton, New Zealand. BibTeX:
Evaluates the worth of a subset of attributes by considering the individual predictive ability of each feature along with the degree of redundancy between them.
Subsets of features that are highly correlated with the class while having low intercorrelation are preferred.
For more information see:
M. A. Hall (1998). Correlation-based Feature Subset Selection for Machine Learning. Hamilton, New Zealand. BibTeX:
@phdthesis{Hall1998, address = {Hamilton, New Zealand}, author = {M. A. Hall}, school = {University of Waikato}, title = {Correlation-based Feature Subset Selection for Machine Learning}, year = {1998} }Valid options are:
-M Treat missing values as a separate value.
-L Don't include locally predictive attributes.
- 版本:
- $Revision: 11851 $
- 作者:
- Mark Hall (mhall@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildEvaluator
(Instances data) Generates a attribute evaluator.void
clean()
Tells the evaluator that the attribute selection process is complete.double
evaluateSubset
(BitSet subset) evaluates a subset of attributesReturns the capabilities of this evaluator.boolean
Return true if including locally predictive attributesboolean
Return true is missing is treated as a separate valueString[]
Gets the current settings of CfsSubsetEvalReturns the revision string.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.Returns a string describing this attribute evaluatorReturns an enumeration describing the available options.Returns the tip text for this propertystatic void
Main method for testing this class.Returns the tip text for this propertyint[]
postProcess
(int[] attributeSet) Calls locallyPredictive in order to include locally predictive attributes (if requested).void
setLocallyPredictive
(boolean b) Include locally predictive attributesvoid
setMissingSeparate
(boolean b) Treat missing as a separate valuevoid
setOptions
(String[] options) Parses and sets a given list of options.toString()
returns a string describing CFS从类继承的方法 weka.attributeSelection.ASEvaluation
forName, makeCopies
-
构造器详细资料
-
CfsSubsetEval
public CfsSubsetEval()Constructor
-
-
方法详细资料
-
globalInfo
Returns a string describing this attribute evaluator- 返回:
- a description of the evaluator suitable for displaying in the explorer/experimenter gui
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses and sets a given list of options. Valid options are:-M Treat missing values as a separate value.
-L Don't include locally predictive attributes.
- 指定者:
setOptions
在接口中OptionHandler
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
locallyPredictiveTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setLocallyPredictive
public void setLocallyPredictive(boolean b) Include locally predictive attributes- 参数:
b
- true or false
-
getLocallyPredictive
public boolean getLocallyPredictive()Return true if including locally predictive attributes- 返回:
- true if locally predictive attributes are to be used
-
missingSeparateTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setMissingSeparate
public void setMissingSeparate(boolean b) Treat missing as a separate value- 参数:
b
- true or false
-
getMissingSeparate
public boolean getMissingSeparate()Return true is missing is treated as a separate value- 返回:
- true if missing is to be treated as a separate value
-
getOptions
Gets the current settings of CfsSubsetEval- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- an array of strings suitable for passing to setOptions()
-
getCapabilities
Returns the capabilities of this evaluator.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中ASEvaluation
- 返回:
- the capabilities of this evaluator
- 另请参阅:
-
buildEvaluator
Generates a attribute evaluator. Has to initialize all fields of the evaluator that are not being set via options. CFS also discretises attributes (if necessary) and initializes the correlation matrix.- 指定者:
buildEvaluator
在类中ASEvaluation
- 参数:
data
- set of instances serving as training data- 抛出:
Exception
- if the evaluator has not been generated successfully
-
evaluateSubset
evaluates a subset of attributes- 指定者:
evaluateSubset
在接口中SubsetEvaluator
- 参数:
subset
- a bitset representing the attribute subset to be evaluated- 返回:
- the merit
- 抛出:
Exception
- if the subset could not be evaluated
-
toString
returns a string describing CFS -
postProcess
Calls locallyPredictive in order to include locally predictive attributes (if requested).- 覆盖:
postProcess
在类中ASEvaluation
- 参数:
attributeSet
- the set of attributes found by the search- 返回:
- a possibly ranked list of postprocessed attributes
- 抛出:
Exception
- if postprocessing fails for some reason
-
clean
public void clean()从类复制的说明:ASEvaluation
Tells the evaluator that the attribute selection process is complete. It can then clean up data structures, references to training data as necessary in order to save memory- 覆盖:
clean
在类中ASEvaluation
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中ASEvaluation
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
args
- the options
-