Description Usage Arguments Details Value Author(s) References See Also Examples
Implements the estDec algorithm for finding recent frequent patterns in transactional datastreams.
1 2 3 4 | DST_EstDec(decayRate = 0.99, minsup = 0.1,
insertSupport = NULL,
pruningSupport = NULL,
datatype="character")
|
decayRate |
The decay rate for patterns found. As this number increases, the patterns found by estDec get more recent, and if it is close to 0, patterns found cover more of the transaction stream's history. |
minsup |
The minimum support needed for a itemset to be considered frequent. |
insertSupport |
The minimum estimated support an itemset needs to be inserted into the tree. If no value is specified, it is set at 60% of |
pruningSupport |
The minimum support an itemset needs to not be removed from the tree. If no value is specified, it is set at 60% of |
datatype |
The datatype used to represent items. The options are "integer" and "character". This depends on the kind of data the DSD used produces. |
estDec finds frequent patterns over a transaction or list datastream. It only keeps track of itemsets that it considers recently frequent based off of the given decayRate and minsup.
An object of class DST_EstDec
(subclass of DST
Derek Phanekham
Chang, J., Lee, W. (2003) Finding Recent Frequent Itemsets Adaptively over Online Data Streams.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
#create datastream
dsd <- DSD_Transactions_Random(setSize=10, maxTransactionSize=4)
#create estDec
dst <- DST_EstDec(datatype = "integer")
#update estDec with new values from data stream
update(dst, dsd, 5)
#get most frequent itemsets
patterns <- get_patterns(dst)
#get the top ten most frequent patterns
topN(patterns, n=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.