Skip to content

Commit 81009b3

Browse files
committed
use candle function to download & store in data dir
1 parent 728b802 commit 81009b3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Pilot1/Uno/test.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
set -x
44

55
# AUC prediction model
6-
if [ ! -f "top_21_auc_1fold.uno.h5" ]; then
7-
curl -o top_21_auc_1fold.uno.h5 http://ftp.mcs.anl.gov/pub/candle/public/benchmarks/Pilot1/uno/top_21_auc_1fold.uno.h5
6+
if [ ! -f "../../Data/Pilot1/Uno/top_21_auc_1fold.uno.h5" ]; then
7+
# download from http://ftp.mcs.anl.gov/pub/candle/public/benchmarks/Pilot1/uno/top_21_auc_1fold.uno.h5
8+
python -c 'from candle import get_file;get_file(fname="top_21_auc_1fold.uno.h5", origin="https://ftp.mcs.anl.gov/pub/candle/public/benchmarks/Pilot1/uno/top_21_auc_1fold.uno.h5", cache_subdir="Pilot1/Uno", datadir="../../Data")'
89
fi
910

10-
python uno_baseline_keras2.py --config_file uno_auc_model.txt --use_exported_data top_21_auc_1fold.uno.h5 -e 3 --save_weights save/saved.model.weights.h5
11-
python uno_infer.py --data top_21_auc_1fold.uno.h5 \
11+
python uno_baseline_keras2.py --config_file uno_auc_model.txt --use_exported_data ../../Data/Pilot1/Uno/top_21_auc_1fold.uno.h5 -e 3 --save_weights save/saved.model.weights.h5
12+
python uno_infer.py --data ../../Data/Pilot1/Uno/top_21_auc_1fold.uno.h5 \
1213
--model_file save/'uno.A=relu.B=32.E=3.O=adamax.LR=0.0001.CF=r.DF=d.DR=0.1.wu_lr.re_lr.L1000.D1=1000.D2=1000.D3=1000.D4=1000.D5=1000.FD1=1000.FD2=1000.FD3=1000.FD4=1000.FD5=1000.model.json' \
1314
--weights_file save/saved.model.weights.h5 \
1415
--partition val \
@@ -17,5 +18,5 @@ python uno_infer.py --data top_21_auc_1fold.uno.h5 \
1718
--agg_dose AUC
1819

1920
# CLR model
20-
python uno_clr_keras2.py --config_file uno_auc_clr_model.txt --use_exported_data top_21_auc_1fold.uno.h5 -e 3
21+
python uno_clr_keras2.py --config_file uno_auc_clr_model.txt --use_exported_data ../../Data/Pilot1/Uno/top_21_auc_1fold.uno.h5 -e 3
2122

0 commit comments

Comments
 (0)