diff options
author | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-06-12 17:28:50 +0300 |
---|---|---|
committer | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-06-12 17:28:50 +0300 |
commit | 394688a327d82cfcaee382acef431ce3eec95f82 (patch) | |
tree | 9a08e804e641d2dfbed07d652070e8dad240475c /tests/training/validation/test_final_validation_after_batches.sh | |
parent | 0f59ae9a972d0c3477f1814e901f4dcbe465d990 (diff) |
Rename directories
Diffstat (limited to 'tests/training/validation/test_final_validation_after_batches.sh')
-rw-r--r-- | tests/training/validation/test_final_validation_after_batches.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/training/validation/test_final_validation_after_batches.sh b/tests/training/validation/test_final_validation_after_batches.sh new file mode 100644 index 0000000..804d451 --- /dev/null +++ b/tests/training/validation/test_final_validation_after_batches.sh @@ -0,0 +1,25 @@ +#!/bin/bash -x + +# Exit on error +set -e + +# Test code goes here +rm -rf final_batch final_batch.log vocab.*.yml +mkdir -p final_batch + +$MRT_MARIAN/build/marian \ + --no-shuffle --seed 1111 -o sgd --dim-emb 64 --dim-rnn 128 \ + -m final_batch/model.npz -t $MRT_DATA/europarl.de-en/corpus.bpe.{en,de} \ + -v vocab.en.yml vocab.de.yml --dim-vocabs 50000 50000 \ + --disp-freq 30 --valid-freq 60 --after-batches 150 \ + --valid-metrics cross-entropy --valid-sets valid.bpe.{en,de} \ + --valid-log final_batch.log + +test -e final_batch/model.npz +test -e final_batch.log + +$MRT_TOOLS/strip-timestamps.sh < final_batch.log > final_batch.out +$MRT_TOOLS/diff-floats.py final_batch.out final_batch.expected -p 0.9 > final_batch.diff + +# Exit with success code +exit 0 |