|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.Filter
weka.filters.unsupervised.attribute.PropositionalToMultiInstance
public class PropositionalToMultiInstance
Converts the propositional instance dataset into multi-instance dataset (with relational attribute). When normalize or standardize a multi-instance dataset, a MIToSingleInstance filter can be applied first to convert the multi-instance dataset into propositional instance dataset. After normalization or standardization, may use this PropositionalToMultiInstance filter to convert the data back to multi-instance format.
Note: the first attribute of the original propositional instance dataset must be a nominal attribute which is expected to be bagId attribute.
-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 Summary | |
---|---|
PropositionalToMultiInstance()
|
Method Summary | |
---|---|
boolean |
batchFinished()
Signify that this batch of input to the filter is finished. |
Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
java.lang.String[] |
getOptions()
Gets the current settings of the classifier. |
boolean |
getRandomize()
Gets whether the order of the generated is randomized |
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 |
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 |
Methods inherited from class weka.filters.Filter |
---|
batchFilterFile, filterFile, getCapabilities, getOutputFormat, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropositionalToMultiInstance()
Method Detail |
---|
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
-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 strings
java.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 void setRandomize(boolean value)
value
- whether to randomize or notpublic boolean getRandomize()
public java.lang.String randomizeTipText()
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 static void main(java.lang.String[] args)
args
- should contain arguments to the filter:
use -h for help
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |