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 |
---|---|
String |
binsTipText()
Returns the tip text for this property
|
String |
findNumBinsTipText()
Returns the tip text for this property
|
int |
getBins()
Ignored
|
boolean |
getFindNumBins()
Get the value of FindNumBins.
|
String[] |
getOptions()
Gets the current settings of the filter.
|
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.
|
String |
globalInfo()
Returns a string describing this filter
|
Enumeration |
listOptions()
Gets an enumeration describing the available options.
|
static void |
main(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(String[] options)
Parses a given list of options.
|
void |
setUseEqualFrequency(boolean newUseEqualFrequency)
Set the value of UseEqualFrequency.
|
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 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).Exception
- if the input format can't be set successfullypublic Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Discretize
public void setOptions(String[] options) throws 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 stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Discretize
public String globalInfo()
globalInfo
in class Discretize
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public 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 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 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 String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Discretize
public static void main(String[] argv)
argv
- should contain arguments to the filter: use -h for helpCopyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.