Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.libsvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.learn.libsvm
Commits
49c0f100
Commit
49c0f100
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[test_trainer] Relax test constraints on closeness (new libsvm 3.24)
parent
f59d0af1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!10
Fix precision test to be a bit softer on floating-point comparisons
Pipeline
#35972
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/learn/libsvm/test_trainer.py
+3
-3
3 additions, 3 deletions
bob/learn/libsvm/test_trainer.py
with
3 additions
and
3 deletions
bob/learn/libsvm/test_trainer.py
+
3
−
3
View file @
49c0f100
...
...
@@ -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
,
1
e-
8
)
_check_abs_diff
(
curr_scores
,
prev_scores
,
5
e-
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
,
1
e-
8
)
_check_abs_diff
(
curr_scores
,
prev_scores
,
5
e-
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
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment