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.3.tar.gz (29.7 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.3-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f38f4f8d6dd5bb215e2435f4cf7d2dcd416a4b5a39b3ee89559b4d2a8a25805e
MD5 f88aa8be2d2c0a516d64066b335d63dc
BLAKE2b-256 f451303767cddfbc50e349d4d825804acd6598c5dcf57504f0438ba5b7606676

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 805d2dc57341db727bf754ce72cc58d415c19dcea0db4c56aeca1224f87bd071
MD5 548549f52846bfe6592aee632663c2ec
BLAKE2b-256 3da5c717f53496fd3e6f0bbf5a2936b5f76217777f5415a98bb3914c5aa406fb

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