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.6.tar.gz (70.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.6-py3-none-any.whl (85.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7d54add7a2bd7474183e2ac94b9749258ccce74bfb8467e34c511e1faccef087
MD5 e51d60f2f5bf3c5b57dd6547b3a28a27
BLAKE2b-256 29e37d6ca6a1215af3f0c4fc6bcb3126f92cbecaa40c029f46a952c37cd2ddff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3ef3ba6378e6613e84fa146d429fdba5a2f7223f53ae012239f6aa760c49cf74
MD5 f108f56ba842517950f311edda1d9548
BLAKE2b-256 c253c9f86a1a2b2cec9595e586aa5f68742e828d9bf354085349038d6f3dcd36

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