Yaning1001's picture
Add files using upload-large-folder tool
f6cf676 verified
#!/bin/bash
# ε‚ζ•°εˆ—θ‘¨
datasets=('Flickr') # 【'cora', 'cora_ml', 'citeseer', 'polblogs', 'pubmed', 'Flickr'】
ptb_types=('minmax') # ['clean', 'meta', 'dice', 'minmax', 'pgd', 'random']
cuda=2
# ιεŽ†ζ‰€ζœ‰η»„εˆ
for dataset in "${datasets[@]}"; do
for ptb_type in "${ptb_types[@]}"; do
if [ "$ptb_type" == "clean" ]; then
ptb_rate=0.0
else
ptb_rate=0.25
fi
echo "Running: dataset=$dataset, ptb_type=$ptb_type, ptb_rate=$ptb_rate"
nohup python ../defense_method/RGCN.py \
--dataset "$dataset" \
--ptb_type "$ptb_type" \
--ptb_rate "$ptb_rate" \
--gpu "$cuda" >> rgcn.txt 2>&1 &
done
done