Skip to main content

Add your description here

Project description

post-analysis-clustering

A Python package for visualizing and interpreting clustering results using statistical tests, feature importance, and insightful plots.

PyPI version License Python GitHub last commit


📦 Installation

Install via pip:

pip install post-analysis-clustering

📦 post-analysis-clustering

📊 Overview

The post-analysis-clustering package is designed to help analyze, validate, and interpret clustering results. It provides tools to:

  • Visualize feature distributions across clusters
  • Identify distinguishing features using statistical tests
  • Plot heatmaps, snake plots, importance charts, and more
  • Evaluate inter-cluster separation and overlap

It is especially useful for clustering results from customer segmentation, fraud detection, or other unsupervised learning pipelines.


🔧 Features

  • 📈 Box, Violin, and Distribution Plots for feature-by-cluster analysis
  • 🧮 Permutation Importance Heatmaps across multiple classifiers
  • 📊 Crosstab and Binned Heatmaps to explore categorical and continuous variables
  • Chi-square tests with human-readable significance interpretation
  • 🎨 Custom color palettes for consistent cluster visualization

🚀 Usage

Basic usage example:

from post_analysis_clustering import plot_bin_heatmap

plot_bin_heatmap(
    raw_df=df,
    features=["age", "income", "purchase_amount"],
    target_cluster="cluster",
    annot_type="Percentage"
)

For a complete usage example, check out the dev.ipynb.


👤 Author

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

post_analysis_clustering-0.1.4.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

post_analysis_clustering-0.1.4-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file post_analysis_clustering-0.1.4.tar.gz.

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.4.tar.gz
Algorithm Hash digest
SHA256 197c4db97c6fe93893d5462995d07eb0a75b7d5138038816695380816651e08b
MD5 934451450265e11e474220fb0f66a520
BLAKE2b-256 d082fe110a763d1c2eee5cc3a6caece4e622fc14c9c4951f6af5cb0b93385939

See more details on using hashes here.

File details

Details for the file post_analysis_clustering-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a3db334ca66f4d4f05fa354abcdfaea2a86c022cb1c67f5c69928504ca009a33
MD5 2ec7c5078c9184d343a4fbd7faefb862
BLAKE2b-256 d9ac71b9f92fb396dccf3ced34b582b6107dc02e3e529db720f34063404319ca

See more details on using hashes here.

Supported by

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