Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_final_validation_after_batches_match.sh « validation « training « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc64991b0690c296eb4f245ed25c0a26b2650641 (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
#!/bin/bash -x

# Exit on error
set -e

# Test code goes here
rm -rf final_match final_match.log vocab.*.yml
mkdir -p final_match

$MRT_MARIAN/marian \
    --no-shuffle --clip-norm 0 --seed 1111 --optimizer sgd --dim-emb 64 --dim-rnn 128 \
    -m final_match/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 180u \
    --valid-metrics cross-entropy --valid-sets valid.bpe.{en,de} \
    --valid-log final_match.log

test -e final_match/model.npz
test -e final_match.log

$MRT_TOOLS/strip-timestamps.sh < final_match.log > final_match.out
$MRT_TOOLS/diff-nums.py final_match.out final_match.expected -p 0.9 -o final_match.diff

# Exit with success code
exit 0