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.market_basket_analysis 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
File details
Details for the file market_basket_analysis-0.1.0.tar.gz
.
File metadata
- Download URL: market_basket_analysis-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e448cc1a1350dc7e64c1b9b16e9fa1202e45957021ca58ffff6ade0f77d73e |
|
MD5 | 7f4fdb9a14724c9584d1bc2ba1f05b18 |
|
BLAKE2b-256 | c9b860eea5b620b1a65f7fbb46c1bca5c04337e51a2cb7b59162f6f0c2490605 |
File details
Details for the file Market_basket_analysis-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: Market_basket_analysis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 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 | 47836ebe773e0f38db49ee70263827bfb06208aa2b7a562ca45c3bc5572c01ce |
|
MD5 | 8188c2207a95277d5615ea6de726e942 |
|
BLAKE2b-256 | 47c127a758d19bdd772ba11741f9a0f0cef2e680aabf720a64395fe015044f1e |