Skip to content

nantrinh/fp-growth

Repository files navigation

FP-Growth

This is an implementation of the FP-Growth algorithm. I referred mainly to this resource for guidance.

Given a file where each row represents a transaction, the algorithm returns all groups of at least min_length items that were purchased together at least min_support times.

Each row consists of space-separated integers. Each integer represents an SKU.

main.py reads in transactions.dat and writes out all groups of 3 or more items that were purchased together at least 4 times.

How to run

Run python main.py. Results are written to output.txt.

Python version used: 3.8.2

About

An implementation of the FP-Growth algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages