A market basket analysis package for data
Project description
Market Basket Analysis Package
This package provides tools for performing Market Basket Analysis (MBA), including generating frequent itemsets and association rules using algorithms like Apriori, FPGrowth, and Eclat. It also includes tools to visualize these rules using interactive graphs. This package simplifies tasks related to itemset mining and rule discovery in transactional datasets.
Features
- Generate frequent itemsets using:
- Apriori Algorithm
- FPGrowth Algorithm
- Eclat Algorithm (custom implementation)
- Create association rules based on various metrics such as support, confidence, and lift.
- Visualize association rules as interactive graphs using Plotly and NetworkX.
Installation
-
Install the package:
-
Install dependencies: Install the required dependencies via
pip:pip install -r requirements.txt
-
Install the package: Once dependencies are installed, you can install the package:
python setup.py install
Usage
After installing, you can import the main analysis function using:
from market_basket_analysis.main import mba
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file market_basket_analysis-0.1.3.tar.gz.
File metadata
- Download URL: market_basket_analysis-0.1.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b114fd0c802c50a53672e6b5aa9af0c5afaf205ba26da071dcb1b18a3b49fc7
|
|
| MD5 |
a45ae76f898a48349240c95767b65e49
|
|
| BLAKE2b-256 |
b25bfca81bb8e606c52f6eb6a20db04ea715c92781413c0d9d7d8237178ad20b
|
File details
Details for the file market_basket_analysis-0.1.3-py3-none-any.whl.
File metadata
- Download URL: market_basket_analysis-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cde1db32cc61bb078bb2d3b991cc79bbaace75dc4f5827851148a4acbc76259b
|
|
| MD5 |
5da2a77b065f89ef62734a007720bfb5
|
|
| BLAKE2b-256 |
220cf4fd1708e2d876bb25bae6bb9ef97c01ce23d4209471f380d48b2d29eb67
|