A package for evaluating clustering algorithms using NCQI.
Project description
Clustering Evaluation (NCQI)
A Python package for evaluating clustering algorithms using the Normalized Clustering Quality Index (NCQI). This package is designed for researchers and practitioners working with unsupervised clustering techniques, providing a quantitative measure for cluster quality assessment.
📌 Installation
To install the package, run:
pip install git+https://github.com/Mojtaba-jahanian/Cosine-Clustering-Index-CCI-.git
📖 Reference Paper
This implementation is based on the research paper: 🔗 "Cosine Clustering Index (CCI) for Deep Clustering Evaluation"
📌 Authors: Mojtaba Jahanian, [Other Authors]
🚀 Usage
from clustering_eval.ncqi import normalized_clustering_quality_index
import numpy as np
# Generate random data and labels
X = np.random.rand(100, 10)
labels = np.random.randint(0, 3, size=100)
# Compute NCQI Score
ncqi_score = normalized_clustering_quality_index(X, labels)
print("NCQI Score:", ncqi_score)
🏆 Features
- Evaluates clustering quality using a novel metric based on cohesion and separation.
- Supports multiple clustering algorithms including KMeans, Agglomerative Clustering, DBSCAN, and Spectral Clustering.
- Scalable for large datasets such as CIFAR-10.
- Easy integration into machine learning workflows.
📊 Example: Clustering CIFAR-10
python examples/cifar10_clustering.py
This example performs clustering on the CIFAR-10 dataset and evaluates the clustering results using NCQI.
🔹 Creating and Publishing the Package
Step 1: Build the Package
python setup.py sdist bdist_wheel
✅ This command creates dist/ and build/ folders containing the final package files.
Step 2: Upload to PyPI
twine upload dist/*
🔹 Enter your PyPI username and password when prompted.
Step 3: Install from PyPI
pip install clustering_eval
📜 License
This project is licensed under the MIT License.
📥 Download the package: clustering_eval_package.zip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clustering_eval-0.1.1.tar.gz.
File metadata
- Download URL: clustering_eval-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07922b7d90a01734eed83aaa645af8392f4a2a3d1369fc94e6af0f487ba49ea3
|
|
| MD5 |
bb741a166355bef53e2ceeac02d783d5
|
|
| BLAKE2b-256 |
1306c981541dd61bd321a977e23e851a264f393bf90772c75266b184bc628cbf
|
File details
Details for the file clustering_eval-0.1.1-py3-none-any.whl.
File metadata
- Download URL: clustering_eval-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78fbce6d5259f91f77948acd8b97ed6e4263bfa72a8341de47d3aaf304e09caf
|
|
| MD5 |
4dc69bebf9bf1d127bf4807db9e76578
|
|
| BLAKE2b-256 |
755e6ec0e5525d8c7b12302b3e03254de9f47f324f03e914245fe810cb12e201
|