Skip to main content

An upper bound of the Average Silhouette Width

Project description

Silhouette Upper Bound

An upper bound of the Average Silhouette Width.

Overview

Evaluating clustering quality is a fundamental task in cluster analysis, and the Average Silhouette Width (ASW) is one of the most widely used metrics for this purpose. ASW scores range from $-1$ to $1$, where:

  • Values near 1 indicate well-separated, compact clusters

  • Values around 0 suggest overlapping or ambiguous cluster assignments

  • Values near -1 imply that many points may have been misassigned

Optimizing the Silhouette score is a common objective in clustering workflows. However, since we rarely know the true global ASW-maximum achievable for a dataset, it's difficult to assess how close a given clustering result is to being globally optimal. Simply comparing to the theoretical maximum of 1 is often misleading, as the structure of the dataset imposes inherent limits on what is achievable.

This project introduces a data-dependent upper bound on the ASW that hopefully can provide a more meaningful reference point than the fixed value of 1. The upper bound helps answer a key question: How close is my clustering result to the best possible outcome on this specific data?

To compute the upper bound, the method requires a dissimilarity matrix as input.

Installation

pip install silhouette-upper-bound

Examples

To help you get started, we provide example scripts demonstrating common use cases. You can find these in the examples/ folder.

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

silhouette_upper_bound-0.0.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silhouette_upper_bound-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file silhouette_upper_bound-0.0.1.tar.gz.

File metadata

  • Download URL: silhouette_upper_bound-0.0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for silhouette_upper_bound-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5848d299917bab3a566209159166b65bb420ff84830c7df5f879857d26885098
MD5 11b8c60df261d4430557972d33e2fa83
BLAKE2b-256 ca5d24d1da20a9534bae8a3fa9e2e4bf6fb2a0fde0c9d7da35cd9e1e46d11616

See more details on using hashes here.

File details

Details for the file silhouette_upper_bound-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for silhouette_upper_bound-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87d114e0b494511a81a659ada5ffb571294eff951ba8e05c0c5081c977d74bcf
MD5 32c295e065a5adaf3f8d73846ad6bf30
BLAKE2b-256 cf16a96e0309ee1c150d34a2377b9ccfd7801621e12186c93e21917eef3dfc70

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