|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.associations.AbstractAssociator
weka.associations.GeneralizedSequentialPatterns
public class GeneralizedSequentialPatterns
Class implementing a GSP algorithm for discovering sequential patterns in a sequential data set.
The attribute identifying the distinct data sequences contained in the set can be determined by the respective option. Furthermore, the set of output results can be restricted by specifying one or more attributes that have to be contained in each element/itemset of a sequence.
For further information see:
Ramakrishnan Srikant, Rakesh Agrawal (1996). Mining Sequential Patterns: Generalizations and Performance Improvements.
@proceedings{Srikant1996, author = {Ramakrishnan Srikant and Rakesh Agrawal}, booktitle = {Advances in Database Technology EDBT '96}, publisher = {Springer}, title = {Mining Sequential Patterns: Generalizations and Performance Improvements}, year = {1996} }Valid options are:
-D If set, algorithm is run in debug mode and may output additional info to the console
-S <minimum support threshold> The miminum support threshold. (default: 0.9)
-I <attribute number representing the data sequence ID The attribute number representing the data sequence ID. (default: 0)
-F <attribute numbers used for result filtering The attribute numbers used for result filtering. (default: -1)
Constructor Summary | |
---|---|
GeneralizedSequentialPatterns()
Constructor. |
Method Summary | |
---|---|
void |
buildAssociations(Instances data)
Extracts all sequential patterns out of a given sequential data set and prints out the results. |
java.lang.String |
dataSeqIDTipText()
Returns the dataSeqID option tip text for the Weka GUI. |
java.lang.String |
debugTipText()
Returns the tip text for this property |
void |
extractFilterAttributes(java.lang.String attrNumbers)
Parses a given String containing attribute numbers which are used for result filtering. |
java.lang.String |
filterAttributesTipText()
Returns the filterAttributes option tip text for the Weka GUI. |
java.lang.String |
getAlgorithmStart()
Returns the time/date string the algorithm was started |
Capabilities |
getCapabilities()
Returns the Capabilities of the algorithm. |
java.lang.String |
getCycleEnd()
Returns the time/date string the cycle ended |
java.lang.String |
getCycleStart()
Returns the time/date string the cycle was started |
int |
getDataSeqID()
Returns the attribute representing the data sequence ID. |
boolean |
getDebug()
Get whether debugging is turned on. |
java.lang.String |
getFilterAttributes()
Returns the String containing the attributes which are used for output filtering. |
double |
getMinSupport()
Returns the minimum support threshold. |
java.lang.String[] |
getOptions()
Returns an Array containing the current options settings. |
java.lang.String |
getRevision()
Returns the revision string. |
TechnicalInformation |
getTechnicalInformation()
Returns TechnicalInformation about the paper related to the algorithm. |
java.lang.String |
globalInfo()
Returns global information about the algorithm. |
java.util.Enumeration |
listOptions()
Returns an enumeration of the available options. |
static void |
main(java.lang.String[] args)
Main method. |
java.lang.String |
minSupportTipText()
Returns the minimum support option tip text for the Weka GUI. |
void |
setDataSeqID(int value)
Sets the attribute representing the data sequence ID. |
void |
setDebug(boolean value)
Set debugging mode. |
void |
setFilterAttributes(java.lang.String value)
Sets the String containing the attributes which are used for output filtering. |
void |
setMinSupport(double value)
Sets the minimum support threshold. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
java.lang.String |
toString()
Returns a String containing the result information of the algorithm. |
Methods inherited from class weka.associations.AbstractAssociator |
---|
forName, makeCopies, makeCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeneralizedSequentialPatterns()
Method Detail |
---|
public java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D If set, algorithm is run in debug mode and may output additional info to the console
-S <minimum support threshold> The miminum support threshold. (default: 0.9)
-I <attribute number representing the data sequence ID The attribute number representing the data sequence ID. (default: 0)
-F <attribute numbers used for result filtering The attribute numbers used for result filtering. (default: -1)
setOptions
in interface OptionHandler
options
- the Array containing the options
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public Capabilities getCapabilities()
getCapabilities
in interface Associator
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class AbstractAssociator
Capabilities
public void buildAssociations(Instances data) throws java.lang.Exception
buildAssociations
in interface Associator
data
- the original data set
java.lang.Exception
- if the associator has not been
generated successfullypublic void extractFilterAttributes(java.lang.String attrNumbers)
attrNumbers
- the String of attribute numberspublic java.lang.String dataSeqIDTipText()
public int getDataSeqID()
public void setDataSeqID(int value)
value
- the data sequence ID to setpublic java.lang.String filterAttributesTipText()
public java.lang.String getFilterAttributes()
public void setFilterAttributes(java.lang.String value)
value
- the String containing the attributespublic java.lang.String minSupportTipText()
public double getMinSupport()
public void setMinSupport(double value)
value
- the minimum support thresholdpublic void setDebug(boolean value)
value
- true if debug output should be printedpublic boolean getDebug()
public java.lang.String debugTipText()
public java.lang.String getAlgorithmStart()
public java.lang.String getCycleStart()
public java.lang.String getCycleEnd()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class AbstractAssociator
public static void main(java.lang.String[] args)
args
- commandline options, use -h for help
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |