CLUBench
收藏资源简介:
CLUBench是由香港中文大学(深圳)研究团队构建的一个综合性聚类基准数据集,旨在系统评估传统算法、深度学习方法及基础模型在聚类任务中的性能表现。该数据集涵盖表格、文本和图像三种模态,共包含131个来自医学、生物学、金融等多元领域的真实世界数据集,样本规模从61至10,000不等,特征维度介于2至27,648之间。数据集的构建基于公开数据集档案和现有研究工作的整合,通过统一框架对24种聚类算法进行了178,815次实验验证。该基准主要应用于聚类算法评估与选择研究,致力于解决跨模态聚类方法性能对比不足、算法部署缺乏指导等核心问题,并为聚类研究提供标准化工具和性能分析基础。
CLUBench is a comprehensive clustering benchmark dataset constructed by the research team from The Chinese University of Hong Kong, Shenzhen, aiming to systematically evaluate the performance of traditional algorithms, deep learning methods, and foundation models on clustering tasks. This dataset covers three modalities: tabular, text, and image, and comprises a total of 131 real-world datasets from diverse fields including medicine, biology, finance and others. The sample sizes of these datasets range from 61 to 10,000, while their feature dimensions vary between 2 and 27,648. Built upon the integration of public dataset repositories and existing research works, CLUBench has conducted 178,815 experimental evaluations on 24 clustering algorithms via a unified framework. This benchmark is primarily applied to research on clustering algorithm evaluation and selection, aiming to address core challenges such as insufficient performance comparison of cross-modal clustering methods and lack of guidance for algorithm deployment, while providing standardized tools and performance analysis foundations for clustering research.
📖 CLUBench (A Clustering Benchmark) 数据集详情
摘要
CLUBench 是一个综合性的聚类基准测试平台,旨在系统性地评估多种聚类算法。它涵盖了 24 种不同原理的算法,并在 131 个数据集上进行了评估,这些数据集涵盖表格、文本和图像三种模态。该基准测试统一比较了最先进的基线方法和基于基础模型的聚类策略。通过 178,815 次实验,CLUBench 提供了具有统计意义的见解,例如在跨模型性能矩阵中观察到低秩结构,这有助于在实践应用中快速进行算法评估和选择。
数据集构成
CLUBench 包含 131 个数据集,分为表格、文本和图像三大类。数据集来源包括 IEEE TPAMI 论文及 OpenML 平台。
- 数量: 131 个
- 类型: 表格 (tabular)、文本 (text)、图像 (image)
- 数据规模: 样本数量从 61 (echocardiogram) 到 10,000 (如 paris_housing_classification) 不等。
- 维度 (dim): 从 2 (tamilnadu-electricity) 到 27,648 (PCam) 不等。
- 类别数 (clusters): 从 2 到 40 (olivetti_faces) 不等。
部分数据集示例:
- 表格数据: breast_cancer_wisconsin_original, iris, wine, spambase, mnist64 等。
- 图像数据: MNIST_CLIP+, fashion_mnist, cifar10, COIL20_CLIP+ 等。
- 文本数据: cnae9, imdb, 20newsgroups, reuters 等。
算法列表
CLUBench 集成了 10 种深度聚类方法,包括:
- DEC (ICML 2016)
- IDEC (IJCAI 2017)
- DSCN (NeurIPS 2017)
- PICA (CVPR 2020)
- ConClu (AAAI 2021)
- EDESC (CVPR 2022)
- DMICC (AAAI 2023)
- DIVC (CVPR 2023)
- P²OT (ICLR 2024)
- LFSS (ICML 2025)
工具与使用
CLUBench 提供了一个易于使用的工具箱,将官方代码整合到统一框架中,并附有详细说明。
1. 安装与依赖
- 环境: Python 3.10, CUDA 12.1
- 安装命令:
pip install -e .
2. 数据集下载
- 由于 GitHub 大小限制,仅提供 10 个数据集。完整数据集需从 Hugging Face 下载:
- 完整数据集: CLUBench-Datasets
- 文本嵌入数据集: Text-ADBench
- 图像嵌入数据集: Image Embedding Datasets
3. 快速开始
-
列出所有数据集: python from CLUBench import DATASETS print(DATASETS)
-
使用 DEC 聚类: python import numpy as np from CLUBench import DEC, load_data data_name = weather.npz X, Y = load_data(data_name) hpc = {n_clusters: len(np.unique(Y))} CM = DEC(**hpc) CM.fit_predict(X) acc, nmi, ari = CM.evaluation(Y)
4. 扩展功能
- 新增数据集: 构建数据字典
{x: data, y: labels},保存为.npz文件,并将名称加入DATASETS列表。 - 新增算法: 创建继承
BaseCluster的新 Python 文件,实现fit_predict(self, X)方法,并在__init__.py中导入。
分析与工具
-
低秩分析:
- 目录:
./low_rank - 命令:
python main.py(可调整缺失率--missing_rate和秩--rank)
- 目录:
-
元特征加载: python from utils import load_meta_features meta_features = load_meta_features()
-
性能矩阵加载: python from utils import load_best_p acc, nmi, ari = load_best_p()
python from utils import load_all_p acc, nmi, ari = load_all_p()




