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

github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2018-06-12 17:28:50 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2018-06-12 17:28:50 +0300
commit394688a327d82cfcaee382acef431ce3eec95f82 (patch)
tree9a08e804e641d2dfbed07d652070e8dad240475c /tests/training/weights/test_word_weighting_with_ones.sh
parent0f59ae9a972d0c3477f1814e901f4dcbe465d990 (diff)
Rename directories
Diffstat (limited to 'tests/training/weights/test_word_weighting_with_ones.sh')
-rw-r--r--tests/training/weights/test_word_weighting_with_ones.sh37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/training/weights/test_word_weighting_with_ones.sh b/tests/training/weights/test_word_weighting_with_ones.sh
deleted file mode 100644
index cfd9b33..0000000
--- a/tests/training/weights/test_word_weighting_with_ones.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-# Exit on error
-set -e
-
-# Test code goes here
-rm -rf word_noweights* word_ones*
-mkdir -p word_noweights word_ones
-
-test -e vocab.de.yml || $MRT_MARIAN/build/marian-vocab < $MRT_DATA/europarl.de-en/corpus.bpe.de > vocab.de.yml
-test -e vocab.en.yml || $MRT_MARIAN/build/marian-vocab < $MRT_DATA/europarl.de-en/corpus.bpe.en > vocab.en.yml
-
-$MRT_MARIAN/build/marian \
- --seed 1111 --no-shuffle --dim-emb 128 --dim-rnn 256 -o sgd \
- -m word_noweights/model.npz -t $MRT_DATA/europarl.de-en/toy.bpe.{de,en} -v vocab.{de,en}.yml \
- --log word_noweights.log --disp-freq 5 -e 2
-
-test -e word_noweights/model.npz
-test -e word_noweights.log
-cat word_noweights.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed -r 's/ Time.*//' > word_noweights.out
-
-cat $MRT_DATA/europarl.de-en/toy.bpe.en | sed -r 's/[^ ]+/1/g' > word_ones.weights.txt
-
-$MRT_MARIAN/build/marian \
- --seed 1111 --no-shuffle --dim-emb 128 --dim-rnn 256 -o sgd \
- -m word_ones/model.npz -t $MRT_DATA/europarl.de-en/toy.bpe.{de,en} -v vocab.{de,en}.yml \
- --log word_ones.log --disp-freq 5 -e 2 \
- --data-weighting word_ones.weights.txt --data-weighting-type word
-
-test -e word_ones/model.npz
-test -e word_ones.log
-
-cat word_ones.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed -r 's/ Time.*//' > word_ones.out
-$MRT_TOOLS/diff-floats.py word_noweights.out word_ones.out -p 0.1 > word_ones.diff
-
-# Exit with success code
-exit 0