-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4_simulation_3.sh
38 lines (29 loc) · 961 Bytes
/
4_simulation_3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#SBATCH -p nvidia
#SBATCH -t 60:00:00
#SBATCH --cpus-per-task=8
#SBATCH --gres=gpu:1
#SBATCH -o batch_jobs_out/%j.out
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
# Activate any environments if required
module load miniconda
source ~/.bashrc
eval "$(conda shell.bash hook)"
conda activate datavoids
# George Clooney actor Good Night, and Good Luck. Ocean’s Twelve (input_7.txt) (did appear in flow 2)
# Set the input parameters
KG_NAME="FB15k-237"
GOOD_FACT="/m/014zcr-/film/actor/film./film/performance/film-/m/0418wg"
BAD_FACT="/m/014zcr-/film/actor/film./film/performance/film-/m/07w8fz"
NUM_ATTACK_BUDGET=25
NUM_RANDOM_REPS=10
PART=${SLURM_ARRAY_TASK_ID}
# Run the Python script with the specified arguments
python -u 4_simulation.py \
--kg_name $KG_NAME \
--good_fact $GOOD_FACT \
--bad_fact $BAD_FACT \
--num_attack_budget $NUM_ATTACK_BUDGET \
--num_random_reps $NUM_RANDOM_REPS \
--regenerate_files