blob: f023d41e026a363ec89e21fe1f1094f845acfb8f (
plain)
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
33
34
|
#!/bin/bash -x
# Exit on error
set -e
# Test code goes here
rm -rf valid valid.log valid_script.temp
mkdir -p valid
$MRT_MARIAN/build/marian \
--seed 2222 --no-shuffle --dim-emb 128 --dim-rnn 256 --maxi-batch 1 \
-m valid/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 10 --valid-freq 30 --after-batches 150 \
--valid-metrics cross-entropy valid-script \
--valid-script-path ./valid_script.sh \
--valid-sets $MRT_DATA/europarl.de-en/toy.bpe.{en,de} \
--valid-log valid.log
test -e vocab.en.yml
test -e vocab.de.yml
test -e valid/model.npz
test -e valid/model.npz.yml
test -e valid/model.npz.amun.yml
test -e valid/model.npz.dev.npz
test -e valid/model.npz.dev.npz.amun.yml
test -e valid.log
$MRT_TOOLS/strip-timestamps.sh < valid.log > valid.out
$MRT_TOOLS/diff-floats.py valid.out valid.expected -p 0.2 > valid.diff
# Exit with success code
exit 0
|