public class DefaultSearch extends AbstractMultiThreadedSearch
-sample-size <num> The size (in percent) of the sample to search the inital space with. (default: 100)
-initial-folds <num> The number of cross-validation folds for the initial space. Numbers smaller than 2 turn off cross-validation and just perform evaluation on the training set. (default: 2)
-subsequent-folds <num> The number of cross-validation folds for the subsequent sub-spaces. Numbers smaller than 2 turn off cross-validation and just perform evaluation on the training set. (default: 10)
-initial-test-set <filename> The (optional) test set to use for the initial space. Gets ignored if pointing to a file. Overrides cross-validation. (default: .)
-subsequent-test-set <filename> The (optional) test set to use for the subsequent sub-spaces. Gets ignored if pointing to a file. Overrides cross-validation. (default: .)
-num-slots <num> Number of execution slots. (default 1 - i.e. no parallelism)
-D Whether to enable debugging output. (default off)General notes:
AbstractSearch.SearchResult| Constructor and Description |
|---|
DefaultSearch() |
| Modifier and Type | Method and Description |
|---|---|
AbstractSearch.SearchResult |
doSearch(weka.core.Instances data)
Performs the actual search and returns the best setup.
|
int |
getInitialSpaceNumFolds()
Gets the number of CV folds for the initial space.
|
File |
getInitialSpaceTestSet()
Gets the test set to use for the initial space.
|
String[] |
getOptions()
returns the options of the current setup.
|
double |
getSampleSizePercent()
Gets the sample size for the initial space search.
|
int |
getSubsequentSpaceNumFolds()
Gets the number of CV folds for the sub-sequent sub-spaces.
|
File |
getSubsequentSpaceTestSet()
Gets the test set to use for the sub-sequent sub-spaces.
|
String |
globalInfo()
Returns a string describing the object.
|
String |
initialSpaceNumFoldsTipText()
Returns the tip text for this property.
|
String |
initialSpaceTestSetTipText()
Returns the tip text for this property.
|
Enumeration |
listOptions()
Gets an enumeration describing the available options.
|
String |
sampleSizePercentTipText()
Returns the tip text for this property.
|
void |
setInitialSpaceNumFolds(int value)
Sets the number of CV folds for the initial space.
|
void |
setInitialSpaceTestSet(File value)
Sets the test set to use folds for the initial space.
|
void |
setOptions(String[] options)
Parses the options for this object.
|
void |
setSampleSizePercent(double value)
Sets the sample size for the initial space search.
|
void |
setSubsequentSpaceNumFolds(int value)
Sets the number of CV folds for the sub-sequent sub-spaces.
|
void |
setSubsequentSpaceTestSet(File value)
Sets the test set to use for the sub-sequent sub-spaces.
|
String |
subsequentSpaceNumFoldsTipText()
Returns the tip text for this property.
|
String |
subsequentSpaceTestSetTipText()
Returns the tip text for this property.
|
cleanUpSearch, getNumExecutionSlots, numExecutionSlotsTipText, preSearch, setNumExecutionSlotsaddPerformance, clone, debugTipText, getCommandline, getDebug, getSearchDimensions, getTrace, getTraceClassifierAsCli, getTraceFolds, getTraceParameterSettings, getTraceSize, getTraceValue, getValues, log, log, postSearch, retrieveOwner, search, setDebug, setOwnerpublic String globalInfo()
globalInfo in class AbstractSearchpublic Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class AbstractMultiThreadedSearchpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class AbstractMultiThreadedSearchpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class AbstractMultiThreadedSearchoptions - the options to useException - if setting of options failspublic String sampleSizePercentTipText()
public double getSampleSizePercent()
public void setSampleSizePercent(double value)
value - the sample size for the initial space search.public String initialSpaceNumFoldsTipText()
public int getInitialSpaceNumFolds()
public void setInitialSpaceNumFolds(int value)
value - the number of folds.public String subsequentSpaceNumFoldsTipText()
public int getSubsequentSpaceNumFolds()
public void setSubsequentSpaceNumFolds(int value)
value - the number of folds.public String initialSpaceTestSetTipText()
public File getInitialSpaceTestSet()
public void setInitialSpaceTestSet(File value)
value - the test set, ignored if dir.public String subsequentSpaceTestSetTipText()
public File getSubsequentSpaceTestSet()
public void setSubsequentSpaceTestSet(File value)
value - the test set, ignored if dir.public AbstractSearch.SearchResult doSearch(weka.core.Instances data) throws Exception
doSearch in class AbstractSearchdata - the dataset to useException - if search failsCopyright © 2017 University of Waikato, Hamilton, NZ. All Rights Reserved.