SkillAgentSearch skills...

Clusteval

Clusteval provides methods for unsupervised cluster validation

Install / Use

/learn @erdogant/Clusteval

README

clusteval

<p align="center"> <a href="https://erdogant.github.io/clusteval"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/logo_large_2.png" width="300" /> </a> </p>

Python PyPI Version License BuyMeCoffee Github Forks GitHub Open Issues Project Status Downloads Downloads DOI Sphinx Open In Colab

<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->

clusteval is a python package that is developed to evaluate detected clusters and return the cluster labels that have most optimal clustering tendency, Number of clusters and clustering quality. Multiple evaluation strategies are implemented for the evaluation; silhouette, dbindex, and derivative, and four clustering methods can be used: agglomerative, kmeans, dbscan and hdbscan.

| Feature | Description | Medium | Gumroad/Podcast | |--------|-------------|---|---| | A step-by-step guide for clustering images | Learn the basics of causal modelling. |link|---| | Creation of Hash image signatures |Detection of (Near) Identical Images Using Image Hash Functions. |link|---| | From Data to Clusters | The step to go from raw data to reliable clusters. |link|---| | From Clusters To Insights. | The step from clusters to valuable insights. |link|---|


Documentation

Full documentation is available at erdogant.github.io/clusteval, including examples and API references.


Installation

It is advisable to use a virtual environment:

conda create -n env_clusteval python=3.12
conda activate env_clusteval

Install via PyPI:

pip install clusteval

To upgrade to the latest version:

pip install --upgrade clusteval

Import the library:

from clusteval import clusteval

Examples

A structured overview is available in the documentation.

<table> <tr> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Examples.html#cluster-evaluation"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/fig1b_sil.png" width="300"/> <br>Silhouette Score </a> </td> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Plots.html#plot"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/fig1a_sil.png" width="300"/> <br>Optimal Clusters </a> </td> </tr> <tr> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Plots.html#dendrogram"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/dendrogram.png" width="300"/> <br>Dendrogram </a> </td> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Examples.html#dbindex-method"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/fig2_dbindex.png" width="300"/> <br>Davies-Bouldin Index </a> </td> </tr> <tr> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Examples.html#derivative-method"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/fig3_der.png" width="300"/> <br>Derivative Method </a> </td> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Examples.html#dbscan"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/fig5_dbscan.png" width="300"/> <br>DBSCAN </a> </td> </tr> <tr> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Examples.html#hdbscan"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/fig4a_hdbscan.png" width="300"/> <br>HDBSCAN A </a> </td> <td align="center"> <a href="https://erdogant.github.io/clusteval/pages/html/Examples.html#hdbscan"> <img src="https://github.com/erdogant/clusteval/blob/master/docs/figs/fig4b_hdbscan.png" width="300"/> <br>HDBSCAN B </a> </td> </tr> </table>

Citation

Please cite clusteval in your publications if it has been helpful in your research. Citation information is available at the top right of the GitHub page.


Related Tools & Blogs


Star history

Star History Chart

Contributors

Thank the contributors!

<p align="left"> <a href="https://github.com/erdogant/clusteval/graphs/contributors"> <img src="https://contrib.rocks/image?repo=erdogant/clusteval" /> </a> </p>

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • Yes! This library is entirely free but it runs on coffee! :) Feel free to support with a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a>.

Buy me a coffee

Related Skills

View on GitHub
GitHub Stars70
CategoryEducation
Updated1mo ago
Forks8

Languages

Jupyter Notebook

Security Score

85/100

Audited on Mar 5, 2026

No findings