zaki: Zaki Data Set

Description Usage Details Source See Also Examples

Description

A small example database for sequence mining provided as an object of class transactions and as a text file.

Usage

1

Details

The data set contains the sequential database described in the paper by M. J. Zaki for illustration of the concepts of sequence mining. sequenceID and eventID denote the sequence and event (time) identifiers of the transactions.

Source

M. J. Zaki. (2001). SPADE: An Efficient Algorithm for Mining Frequent Sequences. Machine Learning Journal, 42, 31–60.

See Also

Class transactions, sequences, function cspade.

Examples

1
2
3
data(zaki)
summary(zaki)
as(zaki, "data.frame")

Example output

Loading required package: arules
Loading required package: Matrix

Attaching package: 'arules'

The following objects are masked from 'package:base':

    abbreviate, write

transactions as itemMatrix in sparse format with
 10 rows (elements/itemsets/transactions) and
 8 columns (items) and a density of 0.3375 

most frequent items:
      A       B       F       C       D (Other) 
      6       5       5       3       3       5 

element (itemset/transaction) length distribution:
sizes
1 2 3 4 
1 2 6 1 

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
   1.00    2.25    3.00    2.70    3.00    4.00 

includes extended item information - examples:
  labels
1      A
2      B
3      C

includes extended transaction information - examples:
  sequenceID eventID SIZE
1          1      10    2
2          1      15    3
3          1      20    3
       items sequenceID eventID SIZE
1      {C,D}          1      10    2
2    {A,B,C}          1      15    3
3    {A,B,F}          1      20    3
4  {A,C,D,F}          1      25    4
5    {A,B,F}          2      15    3
6        {E}          2      20    1
7    {A,B,F}          3      10    3
8    {D,G,H}          4      10    3
9      {B,F}          4      20    2
10   {A,G,H}          4      25    3

arulesSequences documentation built on July 29, 2018, 5:02 p.m.