类 LinearForwardSelection
java.lang.Object
weka.attributeSelection.ASSearch
weka.attributeSelection.LinearForwardSelection
- 所有已实现的接口:
Serializable
,StartSetHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
public class LinearForwardSelection
extends ASSearch
implements OptionHandler, StartSetHandler, TechnicalInformationHandler
LinearForwardSelection:
Extension of BestFirst. Takes a restricted number of k attributes into account. Fixed-set selects a fixed number k of attributes, whereas k is increased in each step when fixed-width is selected. The search uses either the initial ordering to select the top k attributes, or performs a ranking (with the same evalutator the search uses later on). The search direction can be forward, or floating forward selection (with opitional backward search steps).
For more information see:
Martin Guetlein (2006). Large Scale Attribute Selection Using Wrappers. Freiburg, Germany. Valid options are:
Extension of BestFirst. Takes a restricted number of k attributes into account. Fixed-set selects a fixed number k of attributes, whereas k is increased in each step when fixed-width is selected. The search uses either the initial ordering to select the top k attributes, or performs a ranking (with the same evalutator the search uses later on). The search direction can be forward, or floating forward selection (with opitional backward search steps).
For more information see:
Martin Guetlein (2006). Large Scale Attribute Selection Using Wrappers. Freiburg, Germany. Valid options are:
-P <start set> Specify a starting set of attributes. Eg. 1,3,5-7.
-D <0 = forward selection | 1 = floating forward selection> Forward selection method. (default = 0).
-N <num> Number of non-improving nodes to consider before terminating search.
-I Perform initial ranking to select the top-ranked attributes.
-K <num> Number of top-ranked attributes that are taken into account by the search.
-T <0 = fixed-set | 1 = fixed-width> Type of Linear Forward Selection (default = 0).
-S <num> Size of lookup cache for evaluated subsets. Expressed as a multiple of the number of attributes in the data set. (default = 1)
-Z verbose on/off
- 版本:
- $Revision: 6161 $
- 作者:
- Martin Guetlein (martin.guetlein@gmail.com)
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyGet the search directionint
Return the maximum size of the evaluated subset cache (expressed as a multiplier for the number of attributes in a data set.int
Get the number of top-ranked attributes that taken into account by the search process.String[]
Gets the current settings of LinearForwardSelection.boolean
Get boolean if initial ranking should be performed to select the top-ranked attributesReturns the revision string.int
Get the termination criterion (number of non-improving nodes).Returns a list of attributes (and or attribute ranges) as a StringReturns 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.getType()
Get the typeboolean
Get whether output is to be verboseReturns a string describing this search methodReturns an enumeration describing the available options.Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyint[]
search
(ASEvaluation ASEval, Instances data) Searches the attribute subset space by linear forward selectionReturns the tip text for this propertyvoid
Set the search directionvoid
setLookupCacheSize
(int size) Set the maximum size of the evaluated subset cache (hashtable).void
setNumUsedAttributes
(int k) Set the number of top-ranked attributes that taken into account by the search process.void
setOptions
(String[] options) Parses a given list of options.void
setPerformRanking
(boolean b) Perform initial ranking to select top-ranked attributes.void
setSearchTermination
(int t) Set the numnber of non-improving nodes to consider before terminating search.void
setStartSet
(String startSet) Sets a starting set of attributes for the search.void
Set the typevoid
setVerbose
(boolean b) Set whether verbose output should be generated.Returns the tip text for this propertytoString()
returns a description of the search as a StringReturns the tip text for this propertyReturns the tip text for this property从类继承的方法 weka.attributeSelection.ASSearch
forName, makeCopies
-
字段详细资料
-
TAGS_SEARCH_METHOD
-
TAGS_TYPE
-
-
构造器详细资料
-
LinearForwardSelection
public LinearForwardSelection()Constructor
-
-
方法详细资料
-
globalInfo
Returns a string describing this search method- 返回:
- a description of the search method 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 a given list of options. Valid options are:-P
Specify a starting set of attributes. Eg 1,4,7-9.-D <0 = forward selection | 1 = floating forward selection>
Forward selection method of the search. (default = 0).-N
Number of non improving nodes to consider before terminating search. (default = 5).-I
Perform initial ranking to select top-ranked attributes.-K
Number of top-ranked attributes that are taken into account.-T <0 = fixed-set | 1 = fixed-width>
Typ of Linear Forward Selection (default = 0).-S
Size of lookup cache for evaluated subsets. Expressed as a multiple of the number of attributes in the data set. (default = 1).-Z
verbose on/off.- 指定者:
setOptions
在接口中OptionHandler
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
setLookupCacheSize
public void setLookupCacheSize(int size) Set the maximum size of the evaluated subset cache (hashtable). This is expressed as a multiplier for the number of attributes in the data set. (default = 1).- 参数:
size
- the maximum size of the hashtable
-
getLookupCacheSize
public int getLookupCacheSize()Return the maximum size of the evaluated subset cache (expressed as a multiplier for the number of attributes in a data set.- 返回:
- the maximum size of the hashtable.
-
lookupCacheSizeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
startSetTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setStartSet
Sets a starting set of attributes for the search. It is the search method's responsibility to report this start set (if any) in its toString() method.- 指定者:
setStartSet
在接口中StartSetHandler
- 参数:
startSet
- a string containing a list of attributes (and or ranges), eg. 1,2,6,10-15.- 抛出:
Exception
- if start set can't be set.
-
getStartSet
Returns a list of attributes (and or attribute ranges) as a String- 指定者:
getStartSet
在接口中StartSetHandler
- 返回:
- a list of attributes (and or attribute ranges)
-
searchTerminationTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setSearchTermination
Set the numnber of non-improving nodes to consider before terminating search.- 参数:
t
- the number of non-improving nodes- 抛出:
Exception
- if t is less than 1
-
getSearchTermination
public int getSearchTermination()Get the termination criterion (number of non-improving nodes).- 返回:
- the number of non-improving nodes
-
performRankingTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setPerformRanking
public void setPerformRanking(boolean b) Perform initial ranking to select top-ranked attributes.- 参数:
b
- true if initial ranking should be performed
-
getPerformRanking
public boolean getPerformRanking()Get boolean if initial ranking should be performed to select the top-ranked attributes- 返回:
- true if initial ranking should be performed
-
numUsedAttributesTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setNumUsedAttributes
Set the number of top-ranked attributes that taken into account by the search process.- 参数:
k
- the number of attributes- 抛出:
Exception
- if k is less than 2
-
getNumUsedAttributes
public int getNumUsedAttributes()Get the number of top-ranked attributes that taken into account by the search process.- 返回:
- the number of top-ranked attributes that taken into account
-
forwardSelectionMethodTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setForwardSelectionMethod
Set the search direction- 参数:
d
- the direction of the search
-
getForwardSelectionMethod
Get the search direction- 返回:
- the direction of the search
-
typeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setType
Set the type- 参数:
t
- the Linear Forward Selection type
-
getType
Get the type- 返回:
- the Linear Forward Selection type
-
verboseTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setVerbose
public void setVerbose(boolean b) Set whether verbose output should be generated.- 参数:
d
- true if output is to be verbose.
-
getVerbose
public boolean getVerbose()Get whether output is to be verbose- 返回:
- true if output will be verbose
-
getOptions
Gets the current settings of LinearForwardSelection.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- an array of strings suitable for passing to setOptions()
-
toString
returns a description of the search as a String -
search
Searches the attribute subset space by linear forward selection -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中ASSearch
- 返回:
- the revision
-