public class PKIDiscretize extends Discretize implements TechnicalInformationHandler
@inproceedings{Yang2001, author = {Ying Yang and Geoffrey I. Webb}, booktitle = {12th European Conference on Machine Learning}, pages = {564-575}, publisher = {Springer}, series = {LNCS}, title = {Proportional k-Interval Discretization for Naive-Bayes Classifiers}, volume = {2167}, year = {2001} }Valid options are:
-unset-class-temporarily Unsets the class index temporarily before the filter is applied to the data. (default: no)
-R <col1,col2-col4,...> Specifies list of columns to Discretize. First and last are valid indexes. (default: first-last)
-V Invert matching sense of column indexes.
-D Output binary attributes for discretized attributes.
Constructor and Description |
---|
PKIDiscretize() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
binsTipText()
Returns the tip text for this property
|
java.lang.String |
findNumBinsTipText()
Returns the tip text for this property
|
int |
getBins()
Ignored
|
boolean |
getFindNumBins()
Get the value of FindNumBins.
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
java.lang.String |
getRevision()
Returns the revision 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.
|
boolean |
getUseEqualFrequency()
Get the value of UseEqualFrequency.
|
java.lang.String |
globalInfo()
Returns a string describing this filter
|
java.util.Enumeration |
listOptions()
Gets an enumeration describing the available options.
|
static void |
main(java.lang.String[] argv)
Main method for testing this class.
|
void |
setBins(int numBins)
Ignored
|
void |
setFindNumBins(boolean newFindNumBins)
Set the value of FindNumBins.
|
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setUseEqualFrequency(boolean newUseEqualFrequency)
Set the value of UseEqualFrequency.
|
java.lang.String |
useEqualFrequencyTipText()
Returns the tip text for this property
|
attributeIndicesTipText, batchFinished, desiredWeightOfInstancesPerIntervalTipText, getAttributeIndices, getCapabilities, getCutPoints, getDesiredWeightOfInstancesPerInterval, getInvertSelection, getMakeBinary, input, invertSelectionTipText, makeBinaryTipText, setAttributeIndices, setAttributeIndicesArray, setDesiredWeightOfInstancesPerInterval, setInvertSelection, setMakeBinary
getIgnoreClass, getOutputFormat, ignoreClassTipText, setIgnoreClass
batchFilterFile, filterFile, getCapabilities, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
public boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
setInputFormat
in class Discretize
instanceInfo
- an Instances object containing the input instance
structure (any instances contained in the object are ignored - only the
structure is required).java.lang.Exception
- if the input format can't be set successfullypublic java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Discretize
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-unset-class-temporarily Unsets the class index temporarily before the filter is applied to the data. (default: no)
-R <col1,col2-col4,...> Specifies list of columns to Discretize. First and last are valid indexes. (default: first-last)
-V Invert matching sense of column indexes.
-D Output binary attributes for discretized attributes.
setOptions
in interface OptionHandler
setOptions
in class Discretize
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Discretize
public java.lang.String globalInfo()
globalInfo
in class Discretize
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public java.lang.String findNumBinsTipText()
findNumBinsTipText
in class Discretize
public boolean getFindNumBins()
getFindNumBins
in class Discretize
public void setFindNumBins(boolean newFindNumBins)
setFindNumBins
in class Discretize
newFindNumBins
- Value to assign to FindNumBins.public java.lang.String useEqualFrequencyTipText()
useEqualFrequencyTipText
in class Discretize
public boolean getUseEqualFrequency()
getUseEqualFrequency
in class Discretize
public void setUseEqualFrequency(boolean newUseEqualFrequency)
setUseEqualFrequency
in class Discretize
newUseEqualFrequency
- Value to assign to UseEqualFrequency.public java.lang.String binsTipText()
binsTipText
in class Discretize
public int getBins()
getBins
in class Discretize
public void setBins(int numBins)
setBins
in class Discretize
numBins
- the number of binspublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Discretize
public static void main(java.lang.String[] argv)
argv
- should contain arguments to the filter: use -h for help