Commit 49c0f100 authored by André Anjos's avatar André Anjos 💬

[test_trainer] Relax test constraints on closeness (new libsvm 3.24)

parent f59d0af1
Pipeline #35972 failed with stage
in 10 minutes and 13 seconds
...@@ -135,7 +135,7 @@ def test_training(): ...@@ -135,7 +135,7 @@ def test_training():
curr_scores = numpy.array(curr_scores) curr_scores = numpy.array(curr_scores)
prev_scores = numpy.array(prev_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(): def test_training_with_probability():
...@@ -171,7 +171,7 @@ def test_training_with_probability(): ...@@ -171,7 +171,7 @@ def test_training_with_probability():
curr_scores = numpy.array(curr_scores) curr_scores = numpy.array(curr_scores)
prev_scores = numpy.array(prev_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 # 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 # 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(): ...@@ -217,7 +217,7 @@ def test_training_one_class():
curr_scores = numpy.array(curr_scores) curr_scores = numpy.array(curr_scores)
prev_scores = numpy.array(prev_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(): def test_successive_training():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment