Yaning1001's picture
Add files using upload-large-folder tool
f6cf676 verified
#!/bin/bash
# parameter list
datasets=('Flickr') # 【'cora', 'cora_ml', 'citeseer', 'polblogs', 'pubmed', 'Flickr'】
ptb_types=('minmax') # ['clean', 'meta', 'dice', 'minmax', 'pgd', 'random']
# thresholds=(0.01)
thresholds=(0.01)
cuda=0
#
for dataset in "${datasets[@]}"; do
for ptb_type in "${ptb_types[@]}"; do
for threshold in "${thresholds[@]}"; 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, threshold=$threshold"
nohup python ../defense_method/GCNJaccard.py \
--dataset "$dataset" \
--ptb_type "$ptb_type" \
--ptb_rate "$ptb_rate" \
--threshold "$threshold" \
--gpu "$cuda" >> jaccard.txt 2>&1 &
done
done
done