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
File details
Details for the file market_basket_analysis-0.1.2.tar.gz
.
File metadata
- Download URL: market_basket_analysis-0.1.2.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 | b4740ede2926f1161aadb939c14372d2c583b60dd96ede72e1945c7f2c627fd9 |
|
MD5 | 51ff6eb27171e7d9151788d382a83aba |
|
BLAKE2b-256 | f5c8dd9402a71780e9d53eef729f0689945fcecf8e6a8d0cc9cb720b2ef0b2ce |
File details
Details for the file market_basket_analysis-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: market_basket_analysis-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.6 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 | 51aba9ed6040226fcb8245ce8bfe93eb69f5ba8d5e77a6e549a9b28c5aed866d |
|
MD5 | 7d7ea9748ee7356c981ce9fed900047b |
|
BLAKE2b-256 | 0d6a5c324076ae694cdb4fef2ee5471c09e5595e8fd59693c238a4545e458805 |