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

test_sqlite.sh « basics « training « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2e0302a10271e3350304a07777b133456150cbf (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
35
36
37
38
39
#!/bin/bash -x

# Exit on error
set -e

# Test code goes here
rm -rf sqlite *sqlite.log
mkdir -p sqlite

$MRT_MARIAN/build/marian \
    --seed 1111 --no-shuffle --dim-emb 64 --dim-rnn 128 --optimizer sgd \
    -m sqlite/model.nosqlite.npz \
    -t $MRT_DATA/europarl.de-en/corpus.bpe.{en,de} \
    -v sqlite/vocab.en.yml sqlite/vocab.de.yml \
    --disp-freq 10 --after-batches 100 \
    --log nosqlite.log

test -e sqlite/model.nosqlite.npz
test -e nosqlite.log

$MRT_TOOLS/extract-costs.sh < nosqlite.log > nosqlite.out

$MRT_MARIAN/build/marian \
    --seed 1111 --no-shuffle --dim-emb 64 --dim-rnn 128 --optimizer sgd \
    -m sqlite/model.npz \
    -t $MRT_DATA/europarl.de-en/corpus.bpe.{en,de} --sqlite \
    -v sqlite/vocab.en.yml sqlite/vocab.de.yml \
    --disp-freq 10 --after-batches 100 \
    --log sqlite.log

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

$MRT_TOOLS/extract-costs.sh < sqlite.log > sqlite.out

$MRT_TOOLS/diff-floats.py nosqlite.out sqlite.out -p 0.2 > sqlite.diff

# Exit with success code
exit 0