public class IWSSembeddedNB extends ASSearch implements OptionHandler, StartSetHandler, TechnicalInformationHandler
@inproceedings{Bermejo.et.al2014, author = {Pablo Bermejo and Jos\'e A. G\'amez mez and Jos\'e M. Puerta}, title = {Speeding up incremental wrapper feature subset selection with Naive Bayes classifier}, journal = {Knowledge-Based Systems}, volume = {55}, pages = {140 - 147}, year = {2014}, issn = {0950-7051}, doi = {http://dx.doi.org/10.1016/j.knosys.2013.10.016}, }Valid options are:
-minFoldsnumber [1-5] of folds in the inner cross-validation which must be improved when testing a new attribute in the IWSS process.
-replace Add replacement option for the embedded IWSS algorithm.
-theta(0-1] (1 means no Early stopping). Theta value of the early stopping criterion for the embedded IWSS algorithm.
Modifier and Type | Field and Description |
---|---|
static int |
m_IWSSfolds
Number of folds for the inner cross validation of the IWSS process
|
Constructor and Description |
---|
IWSSembeddedNB() |
Modifier and Type | Method and Description |
---|---|
int |
getMinFolds() |
java.lang.String[] |
getOptions()
get a String[] describing the value set for all options
|
double |
getProbabilityFromNormalDistribution(double value,
double mean,
double stdDev,
double precision)
Get a probability estimate for a value given a normal distribution
|
int[] |
getRanking(Instances data)
Ranks attributes based on Simmetrical Uncertainty conditioned on class
attribute.
|
boolean |
getReplace() |
java.lang.String |
getRevision()
Returns the revision string.
|
int[] |
getSelected() |
java.lang.String |
getStartSet() |
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.
|
double |
getTheta() |
java.lang.String |
globalInfo()
Returns a string describing this classifier
|
int[] |
iwss(Instances instances) |
int[] |
iwssR(Instances dataset) |
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
java.lang.String |
minFoldsTipText()
Returns the tip text for this property
|
java.lang.String |
replaceTipText() |
void |
resetOptions()
Reset all options to their default values
|
int[] |
search(ASEvaluation ASEvaluator,
Instances instances)
performs the search
|
void |
setMinFolds(int mf) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setReplace(boolean r)
Activate the option of testing, at each step of the incremental search,
the swapping of a selected feature with another not selected yet.
|
void |
setStartSet(java.lang.String set)
Setting a start set instancies m_skipRanking=true.
|
void |
setTheta(double t) |
java.lang.String |
thetaTipText()
Returns the tip text for this property
|
java.lang.String |
toString()
Returns a description of the search
|
forName, makeCopies
public static final int m_IWSSfolds
public java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public int[] search(ASEvaluation ASEvaluator, Instances instances) throws java.lang.Exception
public int[] iwss(Instances instances) throws java.lang.Exception
java.lang.Exception
public int[] iwssR(Instances dataset) throws java.lang.Exception
java.lang.Exception
public int[] getSelected()
public double getProbabilityFromNormalDistribution(double value, double mean, double stdDev, double precision)
value
- whose probability is being estimatedmean
- of normal distributionstdDev
- standard deviation of normal distributionprecision
- precision for probabilitypublic int[] getRanking(Instances data) throws java.lang.Exception
data
- Instances with attributes to rankif
- something goes wrong during rankingjava.lang.Exception
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ASSearch
public void setMinFolds(int mf)
mf
- minimum number of folds whose wrapper goodness must be
improved in the inner cross-validation when selecting a new
attribute.public void setTheta(double t)
t
- the value to tune the early stopping procedure. Range is
(0-1]. When t=1, early stopping is turned off.public java.lang.String thetaTipText()
public void setReplace(boolean r)
r
- public java.lang.String replaceTipText()
public void setStartSet(java.lang.String set) throws java.lang.Exception
setStartSet
in interface StartSetHandler
set
- a string set of consecutive values starting by 1 (for GUI
Explorer compatibility), separated by comma.java.lang.Exception
- if set does not start by 1 or numbers are not consecutivepublic java.lang.String getStartSet()
getStartSet
in interface StartSetHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-minFoldsminimum number of folds whose wrapper goodness must be improved in the inner cross-validation when selecting a new attribute. (default 2)
-thetathe value to tune the early stopping procedure. Range is (0-1]. When theta=1, early stopping is turned off. (default 1)
-replace Flag to activate the option of testing, at each step of the incremental search, the swapping of a selected feature with another not selected yet. This increases the worst-case theoretical complexity from linear to quadratic.
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic int getMinFolds()
public double getTheta()
public boolean getReplace()
public java.lang.String minFoldsTipText()
public void resetOptions()
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler