forked from Noahs-ARK/soft_patterns
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·32 lines (30 loc) · 1.15 KB
/
test.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
# Use this instead of having to copy/paste into shell each time
<<<<<<< HEAD
EMB_FILE='test/data/glove.840B.300d.txt'
TR_DATA='data/train.data'
TR_LABELS='data/train.labels'
DEV_DATA='data/dev.data'
DEV_LABELS='data/dev.labels'
MODEL_SAVE_DIR='models_blabla/'
INPUT_MODEL='models_blabla/model_148.pth'
TEST_DATA='data/test.data'
TEST_LABELS='data/test.labels'
PATTERN='7-10_6-10_5-10_4-10_3-10_2-10'
MLP_DIM=100
python3.6 ./soft_patterns_test.py -e "$EMB_FILE" --vd "$TEST_DATA" --vl "$TEST_LABELS" -p "$PATTERN" --input_model "$INPUT_MODEL" -d $MLP_DIM
=======
EMB_FILE='test/data/glove.840B.300d.txt' #glove.840B.300d #glove.6B.50d.20words
PATTERN='7-10_6-10_5-10_4-10_3-10_2-10' # "Pattern lengths and numbers: an underscore separated list of length-number pairs (default: 5-50_4-50_3-50_2-50)". Taken from one of the files
INPUT_MODEL='models_blabla/model_0.pth'
TEST_DATA='data/test.data'
TEST_LABELS='data/test.labels'
MLP_DIM=100
python3.6 ./soft_patterns_test.py \
-d $MLP_DIM \
-e "$EMB_FILE" \
--vd "$TEST_DATA" \
--vl "$TEST_LABELS" \
-p "$PATTERN" \
--input_model "$INPUT_MODEL"\
-- no_sl
>>>>>>> c15e6ab33135cbc7b70e829e1b42d4dd655a5c60