Skip to main content

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

Metadata

Release files for post-analysis-clustering 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for post-analysis-clustering 0.1.6
File Size Uploaded Provenance Actions
post_analysis_clustering-0.1.6.tar.gz 70.3 kB Without provenance Details for post_analysis_clustering-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for post-analysis-clustering 0.1.6
File Interpreter ABI Platform Actions
post_analysis_clustering-0.1.6-py3-none-any.whl Python 3 none any Details for post_analysis_clustering-0.1.6-py3-none-any.whl

Total release size: 156.1 kB

Release files / post_analysis_clustering-0.1.6.tar.gz

Download URL post_analysis_clustering-0.1.6.tar.gz
Size 70.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7d54add7a2bd7474183e2ac94b9749258ccce74bfb8467e34c511e1faccef087
BLAKE2b-256 checksum
How to use checksums
29e37d6ca6a1215af3f0c4fc6bcb3126f92cbecaa40c029f46a952c37cd2ddff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Release files / post_analysis_clustering-0.1.6-py3-none-any.whl

Download URL post_analysis_clustering-0.1.6-py3-none-any.whl
Size 85.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ef3ba6378e6613e84fa146d429fdba5a2f7223f53ae012239f6aa760c49cf74
BLAKE2b-256 checksum
How to use checksums
c253c9f86a1a2b2cec9595e586aa5f68742e828d9bf354085349038d6f3dcd36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Security for post-analysis-clustering 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page