类 GeneralizedSequentialPatterns

java.lang.Object
weka.associations.AbstractAssociator
weka.associations.GeneralizedSequentialPatterns
所有已实现的接口:
Serializable, Cloneable, Associator, CapabilitiesHandler, OptionHandler, RevisionHandler, TechnicalInformationHandler

public class GeneralizedSequentialPatterns extends AbstractAssociator implements OptionHandler, TechnicalInformationHandler
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.

BibTeX:

 @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)
版本:
$Revision: 5504 $
作者:
Sebastian Beer
另请参阅:
  • 构造器详细资料

    • GeneralizedSequentialPatterns

      public GeneralizedSequentialPatterns()
      Constructor.
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns global information about the algorithm.
      返回:
      the global information
    • getTechnicalInformation

      public TechnicalInformation getTechnicalInformation()
      Returns TechnicalInformation about the paper related to the algorithm.
      指定者:
      getTechnicalInformation 在接口中 TechnicalInformationHandler
      返回:
      the TechnicalInformation
    • listOptions

      public Enumeration listOptions()
      Returns an enumeration of the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      返回:
      the available options
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses a given list of options.

      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)
      指定者:
      setOptions 在接口中 OptionHandler
      参数:
      options - the Array containing the options
      抛出:
      Exception - if an option is not supported
    • getOptions

      public String[] getOptions()
      Returns an Array containing the current options settings.
      指定者:
      getOptions 在接口中 OptionHandler
      返回:
      the Array containing the settings
    • getCapabilities

      public Capabilities getCapabilities()
      Returns the Capabilities of the algorithm.
      指定者:
      getCapabilities 在接口中 Associator
      指定者:
      getCapabilities 在接口中 CapabilitiesHandler
      覆盖:
      getCapabilities 在类中 AbstractAssociator
      返回:
      the Capabilities
      另请参阅:
    • buildAssociations

      public void buildAssociations(Instances data) throws Exception
      Extracts all sequential patterns out of a given sequential data set and prints out the results.
      指定者:
      buildAssociations 在接口中 Associator
      参数:
      data - the original data set
      抛出:
      Exception - if the associator has not been generated successfully
    • extractFilterAttributes

      public void extractFilterAttributes(String attrNumbers)
      Parses a given String containing attribute numbers which are used for result filtering.
      参数:
      attrNumbers - the String of attribute numbers
    • dataSeqIDTipText

      public String dataSeqIDTipText()
      Returns the dataSeqID option tip text for the Weka GUI.
      返回:
      the option tip text
    • getDataSeqID

      public int getDataSeqID()
      Returns the attribute representing the data sequence ID.
      返回:
      the data sequence ID
    • setDataSeqID

      public void setDataSeqID(int value)
      Sets the attribute representing the data sequence ID.
      参数:
      value - the data sequence ID to set
    • filterAttributesTipText

      public String filterAttributesTipText()
      Returns the filterAttributes option tip text for the Weka GUI.
      返回:
      the option tip text
    • getFilterAttributes

      public String getFilterAttributes()
      Returns the String containing the attributes which are used for output filtering.
      返回:
      the String containing the attributes
    • setFilterAttributes

      public void setFilterAttributes(String value)
      Sets the String containing the attributes which are used for output filtering.
      参数:
      value - the String containing the attributes
    • minSupportTipText

      public String minSupportTipText()
      Returns the minimum support option tip text for the Weka GUI.
      返回:
      the option tip text
    • getMinSupport

      public double getMinSupport()
      Returns the minimum support threshold.
      返回:
      the minimum support threshold
    • setMinSupport

      public void setMinSupport(double value)
      Sets the minimum support threshold.
      参数:
      value - the minimum support threshold
    • setDebug

      public void setDebug(boolean value)
      Set debugging mode.
      参数:
      value - true if debug output should be printed
    • getDebug

      public boolean getDebug()
      Get whether debugging is turned on.
      返回:
      true if debugging output is on
    • debugTipText

      public String debugTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • getAlgorithmStart

      public String getAlgorithmStart()
      Returns the time/date string the algorithm was started
      返回:
      the time and date the algorithm was started
    • getCycleStart

      public String getCycleStart()
      Returns the time/date string the cycle was started
      返回:
      the time and date the cycle was started
    • getCycleEnd

      public String getCycleEnd()
      Returns the time/date string the cycle ended
      返回:
      the time and date the cycle ended
    • toString

      public String toString()
      Returns a String containing the result information of the algorithm.
      覆盖:
      toString 在类中 Object
      返回:
      the String containing the result information
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      覆盖:
      getRevision 在类中 AbstractAssociator
      返回:
      the revision
    • main

      public static void main(String[] args)
      Main method.
      参数:
      args - commandline options, use -h for help