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.
|
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
|
String[] |
getOptions()
Gets the current settings of the classifier.
|
boolean |
getRandomize()
Gets whether the order of the generated is randomized
|
String |
getRevision()
Returns the revision string.
|
int |
getSeed()
Returns the current seed value for randomizing the order of the generated
data
|
String |
globalInfo()
Returns a string describing this filter
|
Enumeration |
listOptions()
Returns an enumeration describing the available options
|
static void |
main(String[] args)
Main method for running this filter.
|
String |
randomizeTipText()
Returns the tip text for this property
|
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(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 String globalInfo()
public Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws 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 stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
public String seedTipText()
public void setSeed(int value)
value
- the new seed valuepublic int getSeed()
public String randomizeTipText()
public void setRandomize(boolean value)
value
- whether to randomize or notpublic boolean getRandomize()
public 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 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).Exception
- if the input format can't be set
successfullypublic boolean batchFinished()
batchFinished
in class Filter
IllegalStateException
- if no input structure has been definedpublic String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Filter
public static void main(String[] args)
args
- should contain arguments to the filter:
use -h for helpCopyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.