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.
📦 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file post_analysis_clustering-0.1.4.tar.gz.
File metadata
- Download URL: post_analysis_clustering-0.1.4.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
197c4db97c6fe93893d5462995d07eb0a75b7d5138038816695380816651e08b
|
|
| MD5 |
934451450265e11e474220fb0f66a520
|
|
| BLAKE2b-256 |
d082fe110a763d1c2eee5cc3a6caece4e622fc14c9c4951f6af5cb0b93385939
|
File details
Details for the file post_analysis_clustering-0.1.4-py3-none-any.whl.
File metadata
- Download URL: post_analysis_clustering-0.1.4-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3db334ca66f4d4f05fa354abcdfaea2a86c022cb1c67f5c69928504ca009a33
|
|
| MD5 |
2ec7c5078c9184d343a4fbd7faefb862
|
|
| BLAKE2b-256 |
d9ac71b9f92fb396dccf3ced34b582b6107dc02e3e529db720f34063404319ca
|