ChunjingXiao / ConGNN

Controlled graph neural networks with denoising diffusion for anomaly detection, Expert Systems with Applications 2023
MIT License
7 stars 0 forks source link

The question about running the code #2

Open wryyy1999 opened 5 months ago

wryyy1999 commented 5 months ago

When running 'python main.py --dataset cora --module GAE --nu 0.1 --lr 0.001 --batch-size 64 --n-hidden 64 --n-layers 2 --weight-decay 0.0005 --n-epochs 1000 --early-stop', the error occurs “FileNotFoundError: [Errno 2] No such file or directory: '/program/ConGNN-main/train_log/cora+OC-GAE.log' ”. When running 'python ddpm/feature_train.py --config ddpm/config/cora_train.json', the error occurs "FileNotFoundError: [Errno 2] No such file or directory: 'data/coraFeature.npy' ". What's the reason, and how to handle them?

ShikangPang commented 4 months ago

Firstly, for the first issue, you need to create a log file named cora+OC-GAE.log. Once the model inference task is completed, it will generate a feature file named coraFeature.npy for the subsequent training, which is required for the second issue.