Coder Social home page Coder Social logo

scagc's Introduction

SCAGC

This repo provides a demo for the TMM-2022 article: Self-consistent Contrastive Attributed Graph Clustering with Pseudo-label Prompt on the ACM dataset.

Requirements

  • Python 3.6
  • PyTorch 1.6.0
  • PyTorch Geometric 1.6.1

Training

-Step 1: Warm-Up:

python \ACM-Pretrain-1\Pre_train_1.py

Once the training is finished, then remember copy the generated Pre_train_1.pkl to the folder ACM-Pretrain-2:

python \ACM-Pretrain-2\Pretrain_2.py

Once the training is finished, then remember copy the generated ACM_pretrain.pkl to the folder ACM-Final:

-Step 2: Clustering:

python \ACM-Final\run_cluster.py

Acknowledgements

Some codes are adapted from GCA and SupContrast. We thank them for their excellent projects.

Contact

If you have any problem about our code, feel free to contact [email protected] or describe your problem in Issues.

scagc's People

Contributors

xdweixia avatar

Stargazers

 avatar  avatar  avatar Leechee avatar fjpzhengshuai avatar  avatar  avatar SHAOCHEN YANG avatar  avatar ManshengChen avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scagc's Issues

关于代码

您好:
读了您的文章,但是您没有释放代码,能要一下代码吗?想将您的算法做一个应用试试

谢谢!

模型复现问题

您好,我对您的工作很感兴趣,于是复现了一下您的代码,但是遇到了个问题,想和你讨论一下原因。
我Pretrain1训练之后的结果是acc = 0.88 ,nmi = 0.63,但是使用pretrain2加了对比学习训练之后,反而最终结果只有acc = 0.84 nmi = 0.54,这也导致了最后的Final train准确率也只有0.85,和论文结果有些差距,我也在找原因,但是目前没看出来,想和您交流请教谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.