-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun2.sh
52 lines (46 loc) · 1.54 KB
/
run2.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#/bin/bash
export CUDA_DEVICE_ORDER="PCI_BUS_ID"
dataset=gowalla
input=~/data/${dataset}data.mat
echo $input
export CUDA_VISIBLE_DEVICES="0"
neg=15
(
for a in 5 2 1 0.5 0.25
do
python run.py $input result1/uniform_${dataset}_nw_n${neg}_a${a}.mat -s 0 -n $neg -w -a $a
python run.py $input result1/uniform_${dataset}_n${neg}_a${a}.mat -s 0 -n $neg -a $a
python run_joint.py $input result1/joint_${dataset}_n${neg}_a${a}.mat -s 2 -m 1 -n $neg -a $a
done
) &
export CUDA_VISIBLE_DEVICES="1"
neg=20
(
for a in 5 2 1 0.5 0.25
do
python run.py $input result1/uniform_${dataset}_nw_n${neg}_a${a}.mat -s 0 -n $neg -w -a $a
python run.py $input result1/uniform_${dataset}_n${neg}_a${a}.mat -s 0 -n $neg -a $a
python run_joint.py $input result1/joint_${dataset}_n${neg}_a${a}.mat -s 2 -m 1 -n $neg -a $a
done
) &
export CUDA_VISIBLE_DEVICES="2"
neg=25
(
for a in 5 2 1 0.5 0.25
do
python run.py $input result1/uniform_${dataset}_nw_n${neg}_a${a}.mat -s 0 -n $neg -w -a $a
python run.py $input result1/uniform_${dataset}_n${neg}_a${a}.mat -s 0 -n $neg -a $a
python run_joint.py $input result1/joint_${dataset}_n${neg}_a${a}.mat -s 2 -m 1 -n $neg -a $a
done
) &
export CUDA_VISIBLE_DEVICES="3"
neg=30
(
for a in 5 2 1 0.5 0.25
do
python run.py $input result1/uniform_${dataset}_nw_n${neg}_a${a}.mat -s 0 -n $neg -w -a $a
python run.py $input result1/uniform_${dataset}_n${neg}_a${a}.mat -s 0 -n $neg -a $a
python run_joint.py $input result1/joint_${dataset}_n${neg}_a${a}.mat -s 2 -m 1 -n $neg -a $a
done
) &
wait