类 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:
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
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildAssociations
(Instances data) Extracts all sequential patterns out of a given sequential data set and prints out the results.Returns the dataSeqID option tip text for the Weka GUI.Returns the tip text for this propertyvoid
extractFilterAttributes
(String attrNumbers) Parses a given String containing attribute numbers which are used for result filtering.Returns the filterAttributes option tip text for the Weka GUI.Returns the time/date string the algorithm was startedReturns the Capabilities of the algorithm.Returns the time/date string the cycle endedReturns the time/date string the cycle was startedint
Returns the attribute representing the data sequence ID.boolean
getDebug()
Get whether debugging is turned on.Returns the String containing the attributes which are used for output filtering.double
Returns the minimum support threshold.String[]
Returns an Array containing the current options settings.Returns the revision string.Returns TechnicalInformation about the paper related to the algorithm.Returns global information about the algorithm.Returns an enumeration of the available options.static void
Main method.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
(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
(String[] options) Parses a given list of options.toString()
Returns a String containing the result information of the algorithm.从类继承的方法 weka.associations.AbstractAssociator
forName, makeCopies, makeCopy
-
构造器详细资料
-
GeneralizedSequentialPatterns
public GeneralizedSequentialPatterns()Constructor.
-
-
方法详细资料
-
globalInfo
Returns global information about the algorithm.- 返回:
- the global information
-
getTechnicalInformation
Returns TechnicalInformation about the paper related to the algorithm.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the TechnicalInformation
-
listOptions
Returns an enumeration of the available options.- 指定者:
listOptions
在接口中OptionHandler
- 返回:
- the available options
-
setOptions
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
Returns an Array containing the current options settings.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- the Array containing the settings
-
getCapabilities
Returns the Capabilities of the algorithm.- 指定者:
getCapabilities
在接口中Associator
- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中AbstractAssociator
- 返回:
- the Capabilities
- 另请参阅:
-
buildAssociations
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
Parses a given String containing attribute numbers which are used for result filtering.- 参数:
attrNumbers
- the String of attribute numbers
-
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
Returns the filterAttributes option tip text for the Weka GUI.- 返回:
- the option tip text
-
getFilterAttributes
Returns the String containing the attributes which are used for output filtering.- 返回:
- the String containing the attributes
-
setFilterAttributes
Sets the String containing the attributes which are used for output filtering.- 参数:
value
- the String containing the attributes
-
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
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getAlgorithmStart
Returns the time/date string the algorithm was started- 返回:
- the time and date the algorithm was started
-
getCycleStart
Returns the time/date string the cycle was started- 返回:
- the time and date the cycle was started
-
getCycleEnd
Returns the time/date string the cycle ended- 返回:
- the time and date the cycle ended
-
toString
Returns a String containing the result information of the algorithm. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中AbstractAssociator
- 返回:
- the revision
-
main
Main method.- 参数:
args
- commandline options, use -h for help
-