|
||||||||||
| 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 Form| Constructor 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. |
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 |
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 |
| 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 String globalInfo()
public Enumeration listOptions()
listOptions in interface OptionHandler
public void setOptions(String[] options)
throws 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 OptionHandleroptions - the list of options as an array of strings
Exception - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerpublic 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 String randomizeTipText()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilities
public boolean setInputFormat(Instances instanceInfo)
throws Exception
setInputFormat in class FilterinstanceInfo - 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 FilterIllegalStateException - if no input structure has been definedpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(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 | |||||||||