-
Notifications
You must be signed in to change notification settings - Fork 2
/
transfer_amazon_pnn_m-50.sh
21 lines (18 loc) · 1.02 KB
/
transfer_amazon_pnn_m-50.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mapping_fp="{data_fd}/Amazon/Electronics_5/processed/item2category.csv"
init_model_fp="{project_fp}/cloud_models/amazon_pnn/checkpoint/epoch/model.ckpt"
data_pfd="{data_fd}/Amazon/Electronics_5/processed"
train_data_fd="${data_pfd}/ts=1385078400_train"
eval_data_fd="${data_pfd}/ts=1385078400_test"
examine_user_list_fp="${data_pfd}/ts=1385078400_user-intersect_trainset20.json"
random_seed=0
max_match=50
device="cpu"
model="pnn"
run_name="transfer_amazon_pnn_m-${max_match}"
mkdir -p ../log/${run_name}/running-logs/
for ti in $(seq 0 1 14)
do
command="../scripts/transfer.py --device=${device} -ti=${ti} -tc=15 -rn=${run_name} -bn=bn -mo=${model} -mm=${max_match} -lr=0.01 -ma=random -rands=${random_seed} -uas=0 -imf=${init_model_fp} -ds=amazon --mapping_fp=${mapping_fp} -tdf=${train_data_fd} -edf=${eval_data_fd} -eulp=${examine_user_list_fp} -aup=${examine_user_list_fp}"
echo "python -u ${command} > ../log/${run_name}/running-logs/${ti}.txt 2>&1 &"
python -u ${command} > ../log/${run_name}/running-logs/${ti}.txt 2>&1 &
done