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.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

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

Uploaded Source

Built Distribution

market_basket_analysis-0.1.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for market_basket_analysis-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b4740ede2926f1161aadb939c14372d2c583b60dd96ede72e1945c7f2c627fd9
MD5 51ff6eb27171e7d9151788d382a83aba
BLAKE2b-256 f5c8dd9402a71780e9d53eef729f0689945fcecf8e6a8d0cc9cb720b2ef0b2ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for market_basket_analysis-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51aba9ed6040226fcb8245ce8bfe93eb69f5ba8d5e77a6e549a9b28c5aed866d
MD5 7d7ea9748ee7356c981ce9fed900047b
BLAKE2b-256 0d6a5c324076ae694cdb4fef2ee5471c09e5595e8fd59693c238a4545e458805

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