Frequent pattern growth

Frequent pattern growth (FP-growth) is a frequent itemset generation technique (similar to Apriori). FP-Growth builds a compact-tree structure and uses the tree for frequent itemset mining and generating rules. It is faster than Apriori and can throw results with large datasets.

Let's go through the steps of FP-Growth:

  1. Setting up the transactions: This step sets up the items by frequency. However, the items are set up vertically, not horizontally. That means transforming input from transaction to items:

t_id

Items

1

(B, C, D, A)

2

(B, C, D)

3

(D, A)

4

(A, B)

5

(A, C, B)

  1. Finding the frequency: Now we have to find out the frequency of each item individually:

Items

Frequency

A

4

B

4

C

3

D

3

Let's set up the minimum threshold or minimum support as 50%:

    • Min Support = (5*50/100) = 2.5
    • Ceiling of minimum support = 2.5 ~ 3
  1. Prioritize the items by frequency: Since all the items have a frequency greater than or equal to minimum support, all the items will be part of it. Also, based on their frequency, priority or rank will be assigned to the items:

Items

Frequency

Rank

A

4

1

B

4

2

C

3

3

D

3

4

 

The order of the items is: A, B, C, and D (by frequency in descending order)

  1. Ordering the items by priority: Now the order of items will be set according to the priority given to various items based on frequency. Currently, the order is A, B, C, and D:

t_id

Items

Order by priority

1

(B, C, D, A)

(A, B, C, D)

2

(B, C, D)

(B, C, D)

3

(D, A)

(A, D)

4

(A, B)

(A, B)

5

(A, C, B)

(A, B, C)

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.235.176