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

Uploaded Source

Built Distribution

market_basket_analysis-0.1.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for market_basket_analysis-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6b114fd0c802c50a53672e6b5aa9af0c5afaf205ba26da071dcb1b18a3b49fc7
MD5 a45ae76f898a48349240c95767b65e49
BLAKE2b-256 b25bfca81bb8e606c52f6eb6a20db04ea715c92781413c0d9d7d8237178ad20b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for market_basket_analysis-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cde1db32cc61bb078bb2d3b991cc79bbaace75dc4f5827851148a4acbc76259b
MD5 5da2a77b065f89ef62734a007720bfb5
BLAKE2b-256 220cf4fd1708e2d876bb25bae6bb9ef97c01ce23d4209471f380d48b2d29eb67

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