forked from WING-NUS/sequicity
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,236 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#!/bin/bash | ||
|
||
set -xeu | ||
|
||
|
||
# s=15 | ||
# ss=$s | ||
# cuda=5 | ||
# for idx in 1 2 3 4 5 6 7 8 9 | ||
# do | ||
# # barely test | ||
|
||
# python model.py -mode test \ | ||
# -model tsdf-camrest \ | ||
# -cfg data="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500.json" \ | ||
# db="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-DB.json" \ | ||
# entity="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-OTGY.json" \ | ||
# vocab_path="./vocab/vocab-fixed${idx}_r_w_m_${s}b.pkl" \ | ||
# model_path="./models/fixed${idx}_r_w_m${ss}.pkl" \ | ||
# result_path="./results/fixed${idx}_r_w_m${ss}-r.csv" \ | ||
# cuda_device=${cuda} | ||
|
||
# # # adaptation | ||
|
||
# cp ./models/fixed${idx}_r_w_m${ss}.pkl ./models/fixed${idx}_r_w_m${ss}_adpb.pkl | ||
|
||
# python model.py -mode adjust \ | ||
# -model tsdf-camrest \ | ||
# -cfg data="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-${s}.json" \ | ||
# db="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-${s}-DB.json" \ | ||
# entity="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-${s}-OTGY.json" \ | ||
# vocab_path="./vocab/vocab-fixed${idx}_r_w_m_${s}b.pkl" \ | ||
# model_path="./models/fixed${idx}_r_w_m${ss}_adpb.pkl" \ | ||
# result_path="./results/fixed${idx}_r_w_m${ss}_adpb-b.csv" \ | ||
# cuda_device=${cuda} | ||
|
||
# # test again | ||
# python model.py -mode test \ | ||
# -model tsdf-camrest \ | ||
# -cfg data="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500.json" \ | ||
# db="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-DB.json" \ | ||
# entity="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-OTGY.json" \ | ||
# vocab_path="./vocab/vocab-fixed${idx}_r_w_m_${s}b.pkl" \ | ||
# model_path="./models/fixed${idx}_r_w_m${ss}_adpb.pkl" \ | ||
# result_path="./results/fixed${idx}_r_w_m${ss}_adpb-b.csv" \ | ||
# cuda_device=${cuda} | ||
|
||
# done | ||
|
||
|
||
# # # #transfer learning | ||
s=15 | ||
ss=$s | ||
cuda=5 | ||
for idx in 1 2 3 4 5 6 7 8 9 | ||
do | ||
# # barely test | ||
|
||
# python model.py -mode test \ | ||
# -model tsdf-camrest \ | ||
# -cfg data="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500.json" \ | ||
# db="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-DB.json" \ | ||
# entity="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-OTGY.json" \ | ||
# vocab_path="./vocab/vocab-fixed${idx}_r_w_m_${s}b.pkl" \ | ||
# model_path="./models/orig_fixed${idx}_r_w_m${ss}.pkl" \ | ||
# result_path="./results/orig_fixed${idx}_r_w_m${ss}-r.csv" \ | ||
# cuda_device=${cuda} | ||
|
||
# # adaptation | ||
|
||
cp ../sequicity_orig/models/fixed${idx}_r_w_m${ss}.pkl ./models/orig_fixed${idx}_r_w_m${ss}_adpb.pkl | ||
|
||
python model.py -mode adjust \ | ||
-model tsdf-camrest \ | ||
-cfg data="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-${s}.json" \ | ||
db="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-${s}-DB.json" \ | ||
entity="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-${s}-OTGY.json" \ | ||
vocab_path="./vocab/vocab-fixed${idx}_r_w_m_${s}b.pkl" \ | ||
model_path="./models/orig_fixed${idx}_r_w_m${ss}_adpb.pkl" \ | ||
result_path="./results/orig_fixed${idx}_r_w_m${ss}_adpb-b.csv" \ | ||
cuda_device=${cuda} | ||
|
||
# test again | ||
python model.py -mode test \ | ||
-model tsdf-camrest \ | ||
-cfg data="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500.json" \ | ||
db="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-DB.json" \ | ||
entity="../SimDial/1500_data_fixed_${idx}/bus-MixSpec-1500-OTGY.json" \ | ||
vocab_path="./vocab/vocab-fixed${idx}_r_w_m_${s}b.pkl" \ | ||
model_path="./models/orig_fixed${idx}_r_w_m${ss}_adpb.pkl" \ | ||
result_path="./results/orig_fixed${idx}_r_w_m${ss}_adpb-b.csv" \ | ||
cuda_device=${cuda} | ||
|
||
done | ||
|
Oops, something went wrong.