类 RandomSubset
java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleStreamFilter
weka.filters.unsupervised.attribute.RandomSubset
Chooses a random subset of attributes, either an absolute number or a percentage. The class is always included in the output (as the last attribute).
Valid options are:
-D Turns on output of debugging information.
-N <double> The number of attributes to randomly select. If < 1 then percentage, >= 1 absolute number. (default: 0.5)
-S <int> The seed value. (default: 1)
- 版本:
- $Revision: 5547 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the Capabilities of this filter.double
Get the number of attributes (< 1 percentage, >= 1 absolute number).String[]
Gets the current settings of the filter.Returns the revision string.int
getSeed()
Get the seed value for the random number generator.Returns a string describing this filter.Returns an enumeration describing the available options.static void
Runs the filter with the given parameters.Returns the tip text for this property.Returns the tip text for this property.void
setNumAttributes
(double value) Set the number of attributes.void
setOptions
(String[] options) Parses a given list of options.void
setSeed
(int value) Set the seed value for the random number generator.从类继承的方法 weka.filters.SimpleStreamFilter
batchFinished, input
从类继承的方法 weka.filters.SimpleFilter
debugTipText, getDebug, setDebug, setInputFormat
从类继承的方法 weka.filters.Filter
batchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
构造器详细资料
-
RandomSubset
public RandomSubset()
-
-
方法详细资料
-
globalInfo
Returns a string describing this filter.- 指定者:
globalInfo
在类中SimpleFilter
- 返回:
- a description of the filter suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SimpleFilter
- 返回:
- an enumeration of all the available options.
-
getOptions
Gets the current settings of the filter.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SimpleFilter
- 返回:
- an array of strings suitable for passing to setOptions
-
setOptions
Parses a given list of options. Valid options are:-D Turns on output of debugging information.
-N <double> The number of attributes to randomly select. If < 1 then percentage, >= 1 absolute number. (default: 0.5)
-S <int> The seed value. (default: 1)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中SimpleFilter
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported- 另请参阅:
-
SimpleFilter.reset()
-
numAttributesTipText
Returns the tip text for this property.- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getNumAttributes
public double getNumAttributes()Get the number of attributes (< 1 percentage, >= 1 absolute number).- 返回:
- the number of attributes.
-
setNumAttributes
public void setNumAttributes(double value) Set the number of attributes.- 参数:
value
- the number of attributes to use.
-
seedTipText
Returns the tip text for this property.- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getSeed
public int getSeed()Get the seed value for the random number generator.- 返回:
- the seed value.
-
setSeed
public void setSeed(int value) Set the seed value for the random number generator.- 参数:
value
- the seed value.
-
getCapabilities
Returns the Capabilities of this filter.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Filter
- 返回:
- the capabilities of this object
- 另请参阅:
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Filter
- 返回:
- the revision
-
main
Runs the filter with the given parameters. Use -h to list options.- 参数:
args
- the commandline options
-