public class PropositionalToMultiInstance extends Filter implements OptionHandler, UnsupervisedFilter
-no-weights Do not weight bags by number of instances they contain. (default off)
-S <num> The seed for the randomization of the order of bags. (default 1)
-R Randomizes the order of the produced bags after the generation. (default off)
MultiInstanceToPropositional
,
Serialized FormConstructor and Description |
---|
PropositionalToMultiInstance() |
Modifier and Type | Method and Description |
---|---|
boolean |
batchFinished()
Signify that this batch of input to the filter is finished.
|
java.lang.String |
doNotWeightBagsTipText()
Returns the tip text for this property
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
boolean |
getDoNotWeightBags()
Gets whether the bags are weighted
|
java.lang.String[] |
getOptions()
Gets the current settings of the classifier.
|
boolean |
getRandomize()
Gets whether the order of the generated is randomized
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
getSeed()
Returns the current seed value for randomizing the order of the generated
data
|
java.lang.String |
globalInfo()
Returns a string describing this filter
|
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options
|
static void |
main(java.lang.String[] args)
Main method for running this filter.
|
java.lang.String |
randomizeTipText()
Returns the tip text for this property
|
java.lang.String |
seedTipText()
Returns the tip text for this property
|
void |
setDoNotWeightBags(boolean value)
Sets whether bags are weighted
|
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setRandomize(boolean value)
Sets whether the order of the generated data is randomized
|
void |
setSeed(int value)
Sets the new seed for randomizing the order of the generated data
|
batchFilterFile, filterFile, getCapabilities, getOutputFormat, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
public java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-no-weights Do not weight bags by number of instances they contain. (default off)
-S <num> The seed for the randomization of the order of bags. (default 1)
-R Randomizes the order of the produced bags after the generation. (default off)
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public java.lang.String seedTipText()
public void setSeed(int value)
value
- the new seed valuepublic int getSeed()
public java.lang.String randomizeTipText()
public void setRandomize(boolean value)
value
- whether to randomize or notpublic boolean getRandomize()
public java.lang.String doNotWeightBagsTipText()
public void setDoNotWeightBags(boolean value)
value
- whether bags are weightedpublic boolean getDoNotWeightBags()
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Filter
Capabilities
public boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
setInputFormat
in class Filter
instanceInfo
- an Instances object containing the input
instance structure (any instances contained in the object are
ignored - only the structure is required).java.lang.Exception
- if the input format can't be set
successfullypublic boolean batchFinished()
batchFinished
in class Filter
java.lang.IllegalStateException
- if no input structure has been definedpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Filter
public static void main(java.lang.String[] args)
args
- should contain arguments to the filter:
use -h for help