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

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-11-09 14:11:00 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-11-09 14:11:00 +0300
commitad136332655d3c148201f576518cfc22faf45c7a (patch)
tree6a05a7db08ebd468160849132cc0641fc83b61bd /examples
parent7e53c94d54f4a2cca92b9156c62be51bcf97ae3f (diff)
Update training example
Diffstat (limited to 'examples')
-rw-r--r--examples/training/README.md2
-rwxr-xr-xexamples/training/run-me.sh13
2 files changed, 4 insertions, 11 deletions
diff --git a/examples/training/README.md b/examples/training/README.md
index 06d87498..5eba9750 100644
--- a/examples/training/README.md
+++ b/examples/training/README.md
@@ -35,7 +35,7 @@ Next it executes a training run with `marian`:
--vocabs model/vocab.ro.yml model/vocab.en.yml \
--dim-vocabs 66000 50000 \
--mini-batch-fit -w 3000 \
- --layer-normalization --dropout-rnn 0.2 --dropout-src 0.1 --dropout-trg 0.1 --moving-average \
+ --layer-normalization --dropout-rnn 0.2 --dropout-src 0.1 --dropout-trg 0.1 --exponential-smoothing \
--early-stopping 5 \
--valid-freq 10000 --save-freq 10000 --disp-freq 1000 \
--valid-metrics cross-entropy translation \
diff --git a/examples/training/run-me.sh b/examples/training/run-me.sh
index 78ef741a..1ffed737 100755
--- a/examples/training/run-me.sh
+++ b/examples/training/run-me.sh
@@ -15,15 +15,8 @@ then
fi
# download dependencies and data
-if [ ! -e "moses-scripts" ]
-then
- git clone https://github.com/amunmt/moses-scripts
-fi
-
-if [ ! -e "subword-nmt" ]
-then
- git clone https://github.com/rsennrich/subword-nmt
-fi
+if cd moses-scripts; then git pull; cd .. else git clone https://github.com/amunmt/moses-scripts; fi
+if cd subword-nmt; then git pull; cd .. else git clone https://github.com/rsennrich/subword-nmt; fi
if [ ! -e "data/corpus.en" ]
then
@@ -49,7 +42,7 @@ then
--vocabs model/vocab.ro.yml model/vocab.en.yml \
--dim-vocabs 66000 50000 \
--mini-batch-fit -w 3000 \
- --layer-normalization --dropout-rnn 0.2 --dropout-src 0.1 --dropout-trg 0.1 \
+ --layer-normalization --dropout-rnn 0.2 --dropout-src 0.1 --dropout-trg 0.1 --exponential-smoothing \
--early-stopping 5 \
--valid-freq 10000 --save-freq 10000 --disp-freq 1000 \
--valid-metrics cross-entropy translation \