liveBook · Manning

Conditional frequent pattern tree

As explained in Data Without Labels

A conditional frequent pattern tree is a frequent pattern tree constructed from the item prefixes that satisfy a specified item's support threshold.

A conditional frequent pattern tree is built for a specified item from its conditional pattern base: item prefixes are aggregated, and those below the support threshold are removed. section 4.6

Construct the tree by following these steps:

  • Collect the prefix paths leading to the selected item and retain their support counts. section 4.6
  • Add counts across paths, discard items below the chosen frequency threshold, and form the conditional tree. section 4.6
  • Append the selected item to the retained prefixes to generate frequent patterns. section 4.6

Cheese

Cheese has the conditional pattern base {{Milk:1}, {Milk-Apples:1}}. With a frequency threshold of 2, Apples is removed, leaving {Milk:2}; adding Cheese produces {Milk-Cheese:2}. section 4.6

Table 4.11 Step 11 of the process where we have finished the details for the item Cheese
Items
Conditional pattern base
Conditional F-P tree
Frequent pattern generated
Cheese
{{Milk:1}, {Milk-Apples:1}}
{Milk:2}
{Milk-Cheese:2}
Bread
Eggs
Apples

Inspect the completed Cheese row showing its conditional pattern base, conditional tree, and generated frequent pattern. section 4.6

How Data Without Labels covers it

How deep it goes
Works through prefix paths, count aggregation, threshold filtering, and pattern generation, without showing implementation code.
Examples
Uses Cheese, Milk, Apples, Bread, and Eggs in conditional-pattern tables.
What you can do after
Evaluate item-specific frequent patterns by applying support thresholds to conditional prefix paths.
How it connects
Connects conditional pattern bases, support counts, frequent pattern trees, and association rules.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Without Labels. The section links point to the parts of the book it draws on.