Skip to main content

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

  1. Install the package:

  2. Install dependencies: Install the required dependencies via pip:

    pip install -r requirements.txt
    
  3. 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

market_basket_analysis-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

market_basket_analysis-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file market_basket_analysis-0.1.1.tar.gz.

File metadata

File hashes

Hashes for market_basket_analysis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 30c4332a3e87f5075a309e4673b82cc6c36636330ce9fb1cbebf4250a5ad7cfd
MD5 40d489670c460310f8b760d1b95d83aa
BLAKE2b-256 63be54363cc8390e6bd214076491298c9b981932106a7f775798376f339ff34a

See more details on using hashes here.

File details

Details for the file market_basket_analysis-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for market_basket_analysis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1866a0bf49909eba148ec1ec591a1b349482dc8050ca20dd18458c6808c31e0
MD5 aea430bb15daadab65553a02a6784853
BLAKE2b-256 64db4640839e56ec31f1c91eced5e78276e05f8b8bfc55a5f0359f1d0d8e0a11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page