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.5.tar.gz (64.4 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.5-py3-none-any.whl (78.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1f5a8ce166b393261453342addb9a572a7a770057f75d438009ecd3916723997
MD5 52ab8debd839b2f6ef99cff30ac79137
BLAKE2b-256 a2fb91632cee19ad0a946b8168afe997e1cd4b48b7f636c7db04d4378859d738

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for post_analysis_clustering-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 feb38fead316ea4a2c25e14bc43af62570346cda8fbec63d9c05fb4b098d1c74
MD5 4e010e36824dc03446cb634188b719b8
BLAKE2b-256 b66ce4030184fcdaa14c7d7fc67a33ae304f344eb3c61e2cbd09dba848dd08c5

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