diff options
author | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-06-21 11:32:18 +0300 |
---|---|---|
committer | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-06-21 11:32:18 +0300 |
commit | cc91c938ecba5032367e29834d3220f4666ab577 (patch) | |
tree | da404b91cf4d3b296494792998804065f9fecab0 /tests/training/restoring/optimizer | |
parent | 318a585aa22fd66f1f3abf49c7b9a6db1b877d41 (diff) |
Move the test to a separe directory
Diffstat (limited to 'tests/training/restoring/optimizer')
-rw-r--r-- | tests/training/restoring/optimizer/.gitignore | 4 | ||||
-rw-r--r-- | tests/training/restoring/optimizer/test_exponential_smoothing.sh | 50 |
2 files changed, 0 insertions, 54 deletions
diff --git a/tests/training/restoring/optimizer/.gitignore b/tests/training/restoring/optimizer/.gitignore index d05ee89..7d90bd2 100644 --- a/tests/training/restoring/optimizer/.gitignore +++ b/tests/training/restoring/optimizer/.gitignore @@ -1,9 +1,5 @@ -sgd_2e adagrad adam adam_async adam_sync adam_load - -expsmooth -expsmooth.expected diff --git a/tests/training/restoring/optimizer/test_exponential_smoothing.sh b/tests/training/restoring/optimizer/test_exponential_smoothing.sh deleted file mode 100644 index 62f7a7c..0000000 --- a/tests/training/restoring/optimizer/test_exponential_smoothing.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -x - -# Exit on error -set -e - -# Test code goes here -rm -rf expsmooth expsmooth_*.log -mkdir -p expsmooth - -opts="--no-shuffle --seed 555 --maxi-batch 1 --maxi-batch-sort none --dim-rnn 64 --dim-emb 32 -o sgd --exponential-smoothing 0.1 --learn-rate 0.1" - - -$MRT_MARIAN/build/marian \ - -m expsmooth/model.full.npz -t $MRT_DATA/europarl.de-en/corpus.bpe.{en,de} -v vocab.en.yml vocab.de.yml \ - --disp-freq 10 --after-batches 100 $opts \ - --log expsmooth_f.log - -test -e expsmooth/model.full.npz -test -e expsmooth_f.log - -cat expsmooth_f.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed 's/ : Time.*//' > expsmooth.expected - - -$MRT_MARIAN/build/marian \ - -m expsmooth/model.npz -t $MRT_DATA/europarl.de-en/corpus.bpe.{en,de} -v vocab.en.yml vocab.de.yml \ - --disp-freq 10 --after-batches 50 $opts \ - --log expsmooth_1.log - -test -e expsmooth/model.npz -test -e expsmooth/model.npz.mvavg.npz -test -e expsmooth_1.log - -cat expsmooth_1.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed 's/ : Time.*//' > expsmooth.out - - -$MRT_MARIAN/build/marian \ - -m expsmooth/model.npz -t $MRT_DATA/europarl.de-en/corpus.bpe.{en,de} -v vocab.en.yml vocab.de.yml \ - --disp-freq 10 --after-batches 100 $opts \ - --log expsmooth_2.log - -test -e expsmooth/model.npz -test -e expsmooth/model.npz.mvavg.npz -test -e expsmooth_2.log - -cat expsmooth_2.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed 's/ : Time.*//' >> expsmooth.out - -$MRT_TOOLS/diff-floats.py -p 0.01 expsmooth.out expsmooth.expected > expsmooth.diff - -# Exit with success code -exit 0 |