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)

Constructor Index

 o PKIDiscretize()
 

Method Index

 o binsTipText()
Returns the tip text for this property
 o findNumBinsTipText()
Returns the tip text for this property
 o getBins()
Ignored
 o getFindNumBins()
Get the value of FindNumBins.
 o getOptions()
Gets the current settings of the filter.
 o getUseEqualFrequency()
Get the value of UseEqualFrequency.
 o globalInfo()
Returns a string describing this filter
 o listOptions()
Gets an enumeration describing the available options.
 o main(String[])
Main method for testing this class.
 o setBins(int)
Ignored
 o setFindNumBins(boolean)
Set the value of FindNumBins.
 o setInputFormat(Instances)
Sets the format of the input instances.
 o setOptions(String[])
Parses the options for this object.
 o setUseEqualFrequency(boolean)
Set the value of UseEqualFrequency.
 o useEqualFrequencyTipText()
Returns the tip text for this property

Constructor Detail

 o PKIDiscretize
public PKIDiscretize()

Method Detail

 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o getFindNumBins
public boolean getFindNumBins()
          Get the value of FindNumBins.
Returns:
Value of FindNumBins.
Overrides:
getFindNumBins in class Discretize
 o setFindNumBins
public void setFindNumBins(boolean newFindNumBins)
          Set the value of FindNumBins.
Parameters:
newFindNumBins - Value to assign to FindNumBins.
Overrides:
setFindNumBins in class Discretize
 o 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
 o getUseEqualFrequency
public boolean getUseEqualFrequency()
          Get the value of UseEqualFrequency.
Returns:
Value of UseEqualFrequency.
Overrides:
getUseEqualFrequency in class Discretize
 o setUseEqualFrequency
public void setUseEqualFrequency(boolean newUseEqualFrequency)
          Set the value of UseEqualFrequency.
Parameters:
newUseEqualFrequency - Value to assign to UseEqualFrequency.
Overrides:
setUseEqualFrequency in class Discretize
 o 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
 o getBins
public int getBins()
          Ignored
Returns:
the number of bins.
Overrides:
getBins in class Discretize
 o setBins
public void setBins(int numBins)
          Ignored
Parameters:
numBins - the number of bins
Overrides:
setBins in class Discretize
 o 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