Hello! This is an algorithm I learned in my first semester while doing the MCS program at UIUC. It is an interactive web-based visualizer for the Apriori algorithm, built using Flask, Plotly, and Pandas.
Upload your own transaction dataset and explore how frequent itemsets and association rules are generated in real-time.
The app applies the Apriori algorithm to discover associations between items in large transactional datasets.
For example, it can automatically discover patterns like:
🥛 Milk + 🍞 Bread → 🧈 Butter (Support: 0.25, Confidence: 0.8, Lift: 1.5)
git clone https://github.com/YOUR_USERNAME/apriori-visualizer.git
cd apriori-visualizerpython3 -m venv venv
source venv/bin/activate # macOS/Linux
# or
venv\Scripts\activate # Windowspip install -r requirements.txtpython app.pyThen open in your browser:
👉 http://127.0.0.1:5000
Upload a CSV like this (1 = item bought, 0 = not bought):
| milk | bread | butter | eggs | apples |
|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
Or generate your own large dataset:
python generate_dataset.py