All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.filters.unsupervised.attribute.PKIDiscretize
java.lang.Object
|
+----weka.filters.Filter
|
+----weka.filters.unsupervised.attribute.Discretize
|
+----weka.filters.unsupervised.attribute.PKIDiscretize
- public class PKIDiscretize
- extends Discretize
Discretizes numeric attributes using equal frequency binning where the
number of bins is equal to the square root of the number of non-missing
values.
Valid filter-specific options are:
-R col1,col2-col4,...
Specifies list of columns to Discretize. First
and last are valid indexes. (default: first-last)
-V
Invert matching sense.
-D
Make binary nominal attributes.
- Version:
- $Revision: 1.4 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
PKIDiscretize()
-
binsTipText()
- Returns the tip text for this property
findNumBinsTipText()
- Returns the tip text for this property
getBins()
- Ignored
getFindNumBins()
- Get the value of FindNumBins.
getOptions()
- Gets the current settings of the filter.
getUseEqualFrequency()
- Get the value of UseEqualFrequency.
globalInfo()
- Returns a string describing this filter
listOptions()
- Gets an enumeration describing the available options.
main(String[])
- Main method for testing this class.
setBins(int)
- Ignored
setFindNumBins(boolean)
- Set the value of FindNumBins.
setInputFormat(Instances)
- Sets the format of the input instances.
setOptions(String[])
- Parses the options for this object.
setUseEqualFrequency(boolean)
- Set the value of UseEqualFrequency.
useEqualFrequencyTipText()
- Returns the tip text for this property
PKIDiscretize
public PKIDiscretize()
setInputFormat
public boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
Sets the format of the input instances.
- Parameters:
instanceInfo - an Instances object containing the input instance
structure (any instances contained in the object are ignored - only the
structure is required).
- Returns:
- true if the outputFormat may be collected immediately
- Throws:
- java.lang.Exception - if the input format can't be set successfully
- Overrides:
- setInputFormat in class Discretize
listOptions
public java.util.Enumeration listOptions()
Gets an enumeration describing the available options.
- Returns:
- an enumeration of all the available options.
- Overrides:
- listOptions in class Discretize
setOptions
public void setOptions(java.lang.String options[]) throws java.lang.Exception
Parses the options for this object. Valid options are:
-R col1,col2-col4,...
Specifies list of columns to Discretize. First
and last are valid indexes. (default none)
-V
Invert matching sense.
-D
Make binary nominal attributes.
- Parameters:
options - the list of options as an array of strings
- Throws:
- java.lang.Exception - if an option is not supported
- Overrides:
- setOptions in class Discretize
getOptions
public java.lang.String[] getOptions()
Gets the current settings of the filter.
- Returns:
- an array of strings suitable for passing to setOptions
- Overrides:
- getOptions in class Discretize
globalInfo
public java.lang.String globalInfo()
Returns a string describing this filter
- Returns:
- a description of the filter suitable for
displaying in the explorer/experimenter gui
- Overrides:
- globalInfo in class Discretize
findNumBinsTipText
public java.lang.String findNumBinsTipText()
Returns the tip text for this property
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
- Overrides:
- findNumBinsTipText in class Discretize
getFindNumBins
public boolean getFindNumBins()
Get the value of FindNumBins.
- Returns:
- Value of FindNumBins.
- Overrides:
- getFindNumBins in class Discretize
setFindNumBins
public void setFindNumBins(boolean newFindNumBins)
Set the value of FindNumBins.
- Parameters:
newFindNumBins - Value to assign to FindNumBins.
- Overrides:
- setFindNumBins in class Discretize
useEqualFrequencyTipText
public java.lang.String useEqualFrequencyTipText()
Returns the tip text for this property
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
getUseEqualFrequency
public boolean getUseEqualFrequency()
Get the value of UseEqualFrequency.
- Returns:
- Value of UseEqualFrequency.
- Overrides:
- getUseEqualFrequency in class Discretize
setUseEqualFrequency
public void setUseEqualFrequency(boolean newUseEqualFrequency)
Set the value of UseEqualFrequency.
- Parameters:
newUseEqualFrequency - Value to assign to UseEqualFrequency.
- Overrides:
- setUseEqualFrequency in class Discretize
binsTipText
public java.lang.String binsTipText()
Returns the tip text for this property
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
- Overrides:
- binsTipText in class Discretize
getBins
public int getBins()
Ignored
- Returns:
- the number of bins.
- Overrides:
- getBins in class Discretize
setBins
public void setBins(int numBins)
Ignored
- Parameters:
numBins - the number of bins
- Overrides:
- setBins in class Discretize
main
public static void main(java.lang.String argv[])
Main method for testing this class.
- Parameters:
argv - should contain arguments to the filter: use -h for help
All Packages Class Hierarchy This Package Previous Next Index WEKA's home