类 PKIDiscretize
java.lang.Object
weka.filters.Filter
weka.filters.unsupervised.attribute.PotentialClassIgnorer
weka.filters.unsupervised.attribute.Discretize
weka.filters.unsupervised.attribute.PKIDiscretize
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
,WeightedInstancesHandler
,UnsupervisedFilter
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.
For more information, see:
Ying Yang, Geoffrey I. Webb: Proportional k-Interval Discretization for Naive-Bayes Classifiers. In: 12th European Conference on Machine Learning, 564-575, 2001. BibTeX:
For more information, see:
Ying Yang, Geoffrey I. Webb: Proportional k-Interval Discretization for Naive-Bayes Classifiers. In: 12th European Conference on Machine Learning, 564-575, 2001. BibTeX:
@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.
- 版本:
- $Revision: 1.9 $
- 作者:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyReturns the tip text for this propertyint
getBins()
Ignoredboolean
Get the value of FindNumBins.String[]
Gets the current settings of the filter.Returns the revision string.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
Get the value of UseEqualFrequency.Returns a string describing this filterGets an enumeration describing the available options.static void
Main method for testing this class.void
setBins
(int numBins) Ignoredvoid
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.Returns the tip text for this property从类继承的方法 weka.filters.unsupervised.attribute.Discretize
attributeIndicesTipText, batchFinished, desiredWeightOfInstancesPerIntervalTipText, getAttributeIndices, getCapabilities, getCutPoints, getDesiredWeightOfInstancesPerInterval, getInvertSelection, getMakeBinary, input, invertSelectionTipText, makeBinaryTipText, setAttributeIndices, setAttributeIndicesArray, setDesiredWeightOfInstancesPerInterval, setInvertSelection, setMakeBinary
从类继承的方法 weka.filters.unsupervised.attribute.PotentialClassIgnorer
getIgnoreClass, getOutputFormat, ignoreClassTipText, setIgnoreClass
从类继承的方法 weka.filters.Filter
batchFilterFile, filterFile, getCapabilities, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
构造器详细资料
-
PKIDiscretize
public PKIDiscretize()
-
-
方法详细资料
-
setInputFormat
Sets the format of the input instances.- 覆盖:
setInputFormat
在类中Discretize
- 参数:
instanceInfo
- an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).- 返回:
- true if the outputFormat may be collected immediately
- 抛出:
Exception
- if the input format can't be set successfully
-
listOptions
Gets an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中Discretize
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. 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.
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中Discretize
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the filter.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中Discretize
- 返回:
- an array of strings suitable for passing to setOptions
-
globalInfo
Returns a string describing this filter- 覆盖:
globalInfo
在类中Discretize
- 返回:
- a description of the filter suitable for displaying in the explorer/experimenter gui
-
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.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
findNumBinsTipText
Returns the tip text for this property- 覆盖:
findNumBinsTipText
在类中Discretize
- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getFindNumBins
public boolean getFindNumBins()Get the value of FindNumBins.- 覆盖:
getFindNumBins
在类中Discretize
- 返回:
- Value of FindNumBins.
-
setFindNumBins
public void setFindNumBins(boolean newFindNumBins) Set the value of FindNumBins.- 覆盖:
setFindNumBins
在类中Discretize
- 参数:
newFindNumBins
- Value to assign to FindNumBins.
-
useEqualFrequencyTipText
Returns the tip text for this property- 覆盖:
useEqualFrequencyTipText
在类中Discretize
- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getUseEqualFrequency
public boolean getUseEqualFrequency()Get the value of UseEqualFrequency.- 覆盖:
getUseEqualFrequency
在类中Discretize
- 返回:
- Value of UseEqualFrequency.
-
setUseEqualFrequency
public void setUseEqualFrequency(boolean newUseEqualFrequency) Set the value of UseEqualFrequency.- 覆盖:
setUseEqualFrequency
在类中Discretize
- 参数:
newUseEqualFrequency
- Value to assign to UseEqualFrequency.
-
binsTipText
Returns the tip text for this property- 覆盖:
binsTipText
在类中Discretize
- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getBins
public int getBins()Ignored- 覆盖:
getBins
在类中Discretize
- 返回:
- the number of bins.
-
setBins
public void setBins(int numBins) Ignored- 覆盖:
setBins
在类中Discretize
- 参数:
numBins
- the number of bins
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Discretize
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
argv
- should contain arguments to the filter: use -h for help
-