public class LinearForwardSelection extends ASSearch implements OptionHandler, StartSetHandler, TechnicalInformationHandler
-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
| Modifier and Type | Field and Description |
|---|---|
static Tag[] |
TAGS_SEARCH_METHOD |
static Tag[] |
TAGS_TYPE |
| Constructor and Description |
|---|
LinearForwardSelection()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
forwardSelectionMethodTipText()
Returns the tip text for this property
|
SelectedTag |
getForwardSelectionMethod()
Get the search direction
|
int |
getLookupCacheSize()
Return the maximum size of the evaluated subset cache (expressed as a
multiplier for the number of attributes in a data set.
|
int |
getNumUsedAttributes()
Get the number of top-ranked attributes that taken into account by the
search process.
|
String[] |
getOptions()
Gets the current settings of LinearForwardSelection.
|
boolean |
getPerformRanking()
Get boolean if initial ranking should be performed to select the
top-ranked attributes
|
String |
getRevision()
Returns the revision string.
|
int |
getSearchTermination()
Get the termination criterion (number of non-improving nodes).
|
String |
getStartSet()
Returns a list of attributes (and or attribute ranges) as a String
|
TechnicalInformation |
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.
|
SelectedTag |
getType()
Get the type
|
boolean |
getVerbose()
Get whether output is to be verbose
|
String |
globalInfo()
Returns a string describing this search method
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
String |
lookupCacheSizeTipText()
Returns the tip text for this property
|
String |
numUsedAttributesTipText()
Returns the tip text for this property
|
String |
performRankingTipText()
Returns the tip text for this property
|
int[] |
search(ASEvaluation ASEval,
Instances data)
Searches the attribute subset space by linear forward selection
|
String |
searchTerminationTipText()
Returns the tip text for this property
|
void |
setForwardSelectionMethod(SelectedTag d)
Set the search direction
|
void |
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 |
setType(SelectedTag t)
Set the type
|
void |
setVerbose(boolean b)
Set whether verbose output should be generated.
|
String |
startSetTipText()
Returns the tip text for this property
|
String |
toString()
returns a description of the search as a String
|
String |
typeTipText()
Returns the tip text for this property
|
String |
verboseTipText()
Returns the tip text for this property
|
forName, makeCopiespublic static final Tag[] TAGS_SEARCH_METHOD
public static final Tag[] TAGS_TYPE
public String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic Enumeration listOptions()
listOptions in interface OptionHandlerpublic void setOptions(String[] options) throws Exception
-P
-D <0 = forward selection | 1 = floating forward selection>
-N
-I
-K
-T <0 = fixed-set | 1 = fixed-width>
-S
-Z
Specify a starting set of attributes. Eg 1,4,7-9.
Forward selection method of the search. (default = 0).
Number of non improving nodes to consider before terminating search.
(default = 5).
Perform initial ranking to select top-ranked attributes.
Number of top-ranked attributes that are taken into account.
Typ of Linear Forward Selection (default = 0).
Size of lookup cache for evaluated subsets. Expressed as a multiple of
the number of attributes in the data set. (default = 1).
verbose on/off.
setOptions in interface OptionHandleroptions - the list of options as an array of stringsException - if an option is not supportedpublic void setLookupCacheSize(int size)
size - the maximum size of the hashtablepublic int getLookupCacheSize()
public String lookupCacheSizeTipText()
public String startSetTipText()
public void setStartSet(String startSet) throws Exception
setStartSet in interface StartSetHandlerstartSet - a string containing a list of attributes (and or ranges), eg.
1,2,6,10-15.Exception - if start set can't be set.public String getStartSet()
getStartSet in interface StartSetHandlerpublic String searchTerminationTipText()
public void setSearchTermination(int t)
throws Exception
t - the number of non-improving nodesException - if t is less than 1public int getSearchTermination()
public String performRankingTipText()
public void setPerformRanking(boolean b)
b - true if initial ranking should be performedpublic boolean getPerformRanking()
public String numUsedAttributesTipText()
public void setNumUsedAttributes(int k)
throws Exception
k - the number of attributesException - if k is less than 2public int getNumUsedAttributes()
public String forwardSelectionMethodTipText()
public void setForwardSelectionMethod(SelectedTag d)
d - the direction of the searchpublic SelectedTag getForwardSelectionMethod()
public String typeTipText()
public void setType(SelectedTag t)
t - the Linear Forward Selection typepublic SelectedTag getType()
public String verboseTipText()
public void setVerbose(boolean b)
d - true if output is to be verbose.public boolean getVerbose()
public String[] getOptions()
getOptions in interface OptionHandlerpublic String toString()
public int[] search(ASEvaluation ASEval, Instances data) throws Exception
public String getRevision()
getRevision in interface RevisionHandlergetRevision in class ASSearchCopyright © 2021 University of Waikato, Hamilton, NZ. All rights reserved.