Awesome
Deep Attention-guided Graph Clustering with Dual Self-supervision
DOI: 10.1109/TCSVT.2022.3232604
URL: https://ieeexplore.ieee.org/iel7/76/4358651/09999681.pdf
We have added comments in the code, and the specific details can correspond to the explanation in the paper. Please get in touch with me (zhihapeng3-c@my.cityu.edu.hk) if you have any issues.
We appreciate it if you use this code and cite our related papers, which can be cited as follows,
@ARTICLE{9999681, <br> title={Deep Attention-guided Graph Clustering with Dual Self-supervision}, <br> author={Peng, Zhihao and Liu, Hui and Jia, Yuheng and Hou, Junhui}, <br> journal={IEEE Transactions on Circuits and Systems for Video Technology}, <br> year={2022}, <br> volume={}, <br> number={}, <br> pages={1-1}, <br> doi={10.1109/TCSVT.2022.3232604} } <br>
@article{peng2022graph, <br> title={Graph Augmentation Clustering Network}, <br> author={Peng, Zhihao and Liu, Hui and Jia, Yuheng and Hou, Junhui}, <br> journal={arXiv preprint arXiv:2211.10627}, <br> year={2022} } <br>
@inproceedings{peng2021attention, <br> title={Attention-driven graph clustering network}, <br> author={Peng, Zhihao and Liu, Hui and Jia, Yuheng and Hou, Junhui}, <br> booktitle={Proceedings of the 29th ACM International Conference on Multimedia}, <br> pages={935--943}, <br> year={2021} } <br>
Environment
- Python[3.6.12]
- Pytorch[1.9.0+cu102]
- GPU (GeForce RTX 2080 Ti) & (NVIDIA GeForce RTX 3090) & (Quadro RTX 8000)
To run code
- Step 1: choose the data, i.e., [data_name]=acm/cite/dblp/hhar/reut/usps/amap/pubmed/aids
- Step 2: python DAGC.py --name [data_name]
- For examle, if u would like to run AGCN on the ACM dataset, u need to
- run the command "python DAGC.py --name acm"
Evaluation
- eva_previous.py š The commonly used clustering metrics, such as acc, nmi, ari, and f1, etc.
- get_net_par_num.py š Get the network parameters by `print(num_net_parameter(model))', where model is the designed network.
Data
Due to the limitation of GitHub, we share the other data in [<a href="https://drive.google.com/drive/folders/1D_kH2loUTH6fHfdwnVElUHVw1kHfflVV?usp=sharing">here</a>]. The AIDS Antiviral Screen dataset can be found at [<a href="https://paperswithcode.com/dataset/aids-antiviral-screen">here</a>].
Q&A
- Q1: What we use the cosine similarity measure as a distance measure to construct graph data for non-graph datasets?
- A1: KNN graph construction with the Euclidean distance measure fails to exploit the geometric structure information and hence cannot provide an effective KNN graph. Instead, we use the cosine similarity measure as a distance measure to conduct the KNN-k graph construction, since two samples owing to the same cluster tend to have larger absolute cosine values than those lying in different clusters.
- Q2: What device was the experiment run on?
- A2: The experiments are run on the Pytorch platform using an Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz, 32.0GB RAM, and an NVIDIA GeForce RTX 2080-Ti 27.0GB GPU. Notably, for the large-scale dataset, the experiments are run on a dedicated server in the laboratory, which has an Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz, a Quadro RTX 8000 49152 MB GPU.