Skip to content

Zhengymm/CLAGC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLAGC

Implementation for CLAGC model (Attributed Graph Clustering Under the Contrastive Mechanism with Cluster-preserving Augmentation)

Implementation

pretrain.py: pretrain multilevel contrast to get initial parameters and node representations.

train_conclu.py: jointly train the whole model.

Example:

--neg True: CLAGC-neg model with negative sampling strategy; --neg False: basic CLAGC model

python train_conclu.py --dataset Cora --hidden 512 --out_dim 256 --pro_hid 1024 --activation relu --k 0 --rm 0.85 --mask 0.1 --lr 0.0001

python train_conclu.py --dataset Amazon-Photo --activation relu --hidden 512 --out_dim 128 --pro_hid 1024 --aug knn --k 6 --rm 0.85 --mask 0 --lr 0.00003 --epochs 240 --update_p 20

About

Implementation for CLAGC model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages