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-02-19 20:03:10 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2018-02-19 20:03:10 +0300
commit0b34f09f02fedda694aeb8ba7e28d20cd60f2cd9 (patch)
tree91fa345858cfd1785f1c2c8dc976ebd60313bb8f /tests/training
parentd2c8810150a9f58bc24fe31c38e131226e2023e2 (diff)
Use lower precision
Diffstat (limited to 'tests/training')
-rw-r--r--tests/training/restart/test_sgd_for_two_epochs.sh2
-rw-r--r--tests/training/weights/test_validation.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/training/restart/test_sgd_for_two_epochs.sh b/tests/training/restart/test_sgd_for_two_epochs.sh
index ee4ff74..946496c 100644
--- a/tests/training/restart/test_sgd_for_two_epochs.sh
+++ b/tests/training/restart/test_sgd_for_two_epochs.sh
@@ -42,7 +42,7 @@ test -e sgd_2nd_epoch.log
cat sgd_2nd_epoch.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed 's/ : Time.*//' > sgd_2nd_epoch.out
cat sgd_1st_epoch.out sgd_2nd_epoch.out > sgd_2e.out
-$MRT_TOOLS/diff-floats.py sgd_2e.out sgd_2e.expected -p 0.01 > sgd_2e.diff
+$MRT_TOOLS/diff-floats.py sgd_2e.out sgd_2e.expected -p 0.3 > sgd_2e.diff
# Exit with success code
exit 0
diff --git a/tests/training/weights/test_validation.sh b/tests/training/weights/test_validation.sh
index cf1e36c..ec18fb2 100644
--- a/tests/training/weights/test_validation.sh
+++ b/tests/training/weights/test_validation.sh
@@ -21,10 +21,10 @@ test -e valid/valid.log
test -e valid/train.log
$MRT_TOOLS/strip-timestamps.sh < valid/valid.log > valid.out
-$MRT_TOOLS/diff-floats.py valid.out valid.expected -p 0.1 > valid.diff
+$MRT_TOOLS/diff-floats.py valid.out valid.expected -p 0.4 > valid.diff
$MRT_TOOLS/extract-costs.sh < valid/train.log > train.out
-$MRT_TOOLS/diff-floats.py train.out train.expected -p 0.1 > train.diff
+$MRT_TOOLS/diff-floats.py train.out train.expected -p 0.4 > train.diff
# Exit with success code
exit 0