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.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

Market_basket_analysis-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for market_basket_analysis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 70e448cc1a1350dc7e64c1b9b16e9fa1202e45957021ca58ffff6ade0f77d73e
MD5 7f4fdb9a14724c9584d1bc2ba1f05b18
BLAKE2b-256 c9b860eea5b620b1a65f7fbb46c1bca5c04337e51a2cb7b59162f6f0c2490605

See more details on using hashes here.

File details

Details for the file Market_basket_analysis-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Market_basket_analysis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47836ebe773e0f38db49ee70263827bfb06208aa2b7a562ca45c3bc5572c01ce
MD5 8188c2207a95277d5615ea6de726e942
BLAKE2b-256 47c127a758d19bdd772ba11741f9a0f0cef2e680aabf720a64395fe015044f1e

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