task_type=ranking
data_name=ml-1m
attacker_num=1200
filler_num=76
target_num=5

for rec_model in SGDL # MF CDAE NeuMF LightGCN SGL
    do for attack_model in RevAdv #RandomAttack BandwagonAttack # AUSH  RevAdv # #
        do
            # 打开 rec_model.yaml，把batch_size: 2048 #128 2048 替换成 batch_size: 64 #128 2048
            sed -i 's/batch_size: 1024 #128 2048/batch_size: 400 #128 2048/' ./configs/rec_model.yaml  
            sed -i 's/batch_size: 512 #128 2048/batch_size: 400 #128 2048/' ./configs/rec_model.yaml  
            sed -i 's/batch_size: 200 #128 2048/batch_size: 400 #128 2048/' ./configs/rec_model.yaml  
            sed -i 's/batch_size: 256 #128 2048/batch_size: 400 #128 2048/' ./configs/rec_model.yaml  
            sed -i 's/batch_size: 128 #128 2048/batch_size: 400 #128 2048/' ./configs/rec_model.yaml  
            sed -i 's/eval_freq: 2/eval_freq: 1/' ./configs/rec_model.yaml  
            sed -i 's/stop_step: 4/stop_step: 2/' ./configs/rec_model.yaml  
            sed -i 's/lr: 0.0005 #lr/lr: 0.001 #lr/' ./configs/rec_model.yaml  
            sed -i 's/lightGCN_n_layers: 3/lightGCN_n_layers: 2/' ./configs/rec_model.yaml  
            # 打印参数以调试
            sh run_main_zj.sh $task_type $rec_model $attack_model $data_name $attacker_num $filler_num $target_num 
            # 回复
            # sed -i 's/batch_size: 64 #128 2048/batch_size: 2048 #128 2048/' ./configs/rec_model.yaml
        done
    done

# data_name=CiaoDVD
# attacker_num=40
# filler_num=18
# target_num=1 

# for rec_model in SGDL # MF CDAE NeuMF LightGCN SGL
#     do for attack_model in none RandomAttack BandwagonAttack AUSH  RevAdv # #
#         do
#             # 打印参数以调试
#             sh run_main_zj.sh $task_type $rec_model $attack_model $data_name $attacker_num $filler_num $target_num 
#         done
#     done


# data_name=Gowalla
# attacker_num=890 #8719
# filler_num=12 #203
# target_num=4 #44
# for rec_model in SGDL # MF CDAE NeuMF LightGCN SGL
#     do for attack_model in none RandomAttack BandwagonAttack AUSH  RevAdv # #
#         do
#             # 打印参数以调试
#             sh run_main_zj.sh $task_type $rec_model $attack_model $data_name $attacker_num $filler_num $target_num 
#         done
#     done