From 49c0f100f0e1f108bd80500a9657b7dcb2501111 Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Fri, 20 Dec 2019 13:31:27 +0100 Subject: [PATCH] [test_trainer] Relax test constraints on closeness (new libsvm 3.24) --- bob/learn/libsvm/test_trainer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bob/learn/libsvm/test_trainer.py b/bob/learn/libsvm/test_trainer.py index 9f4c029..787272b 100644 --- a/bob/learn/libsvm/test_trainer.py +++ b/bob/learn/libsvm/test_trainer.py @@ -135,7 +135,7 @@ def test_training(): curr_scores = numpy.array(curr_scores) prev_scores = numpy.array(prev_scores) - _check_abs_diff(curr_scores, prev_scores, 1e-8) + _check_abs_diff(curr_scores, prev_scores, 5e-7) def test_training_with_probability(): @@ -171,7 +171,7 @@ def test_training_with_probability(): curr_scores = numpy.array(curr_scores) prev_scores = numpy.array(prev_scores) - _check_abs_diff(curr_scores, prev_scores, 1e-8) + _check_abs_diff(curr_scores, prev_scores, 5e-7) # check probabilities -- probA and probB do not get the exact same values # as when using libsvm's svm-train.c. The reason may lie in the order in @@ -217,7 +217,7 @@ def test_training_one_class(): curr_scores = numpy.array(curr_scores) prev_scores = numpy.array(prev_scores) - _check_abs_diff(curr_scores, prev_scores) + _check_abs_diff(curr_scores, prev_scores, 5e-7) def test_successive_training(): -- 2.21.0