Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
medai
software
mednet
Commits
4b6a46a9
Commit
4b6a46a9
authored
2 months ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Fix use of classification evaluator
parent
661ab557
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#95349
passed
2 months ago
Stage: qa
Stage: doc
Stage: dist
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/classify/test_evaluator.py
+6
-0
6 additions, 0 deletions
tests/classify/test_evaluator.py
with
6 additions
and
0 deletions
tests/classify/test_evaluator.py
+
6
−
0
View file @
4b6a46a9
...
@@ -40,10 +40,13 @@ def test_run_binary_1() -> None:
...
@@ -40,10 +40,13 @@ def test_run_binary_1() -> None:
(
"
s3
"
,
[
1
],
[
0.4
]),
(
"
s3
"
,
[
1
],
[
0.4
]),
]
]
rng
=
numpy
.
random
.
default_rng
(
42
)
results
=
run
(
results
=
run
(
"
test
"
,
"
test
"
,
predictions
,
predictions
,
binning
=
10
,
binning
=
10
,
rng
=
rng
,
threshold_a_priori
=
0.5
,
threshold_a_priori
=
0.5
,
)
)
...
@@ -97,11 +100,14 @@ def test_run_binary_2() -> None:
...
@@ -97,11 +100,14 @@ def test_run_binary_2() -> None:
(
"
s3
"
,
[
1
],
[
0.4
]),
(
"
s3
"
,
[
1
],
[
0.4
]),
]
]
rng
=
numpy
.
random
.
default_rng
(
42
)
# a change in the threshold should not affect auc and average precision scores
# a change in the threshold should not affect auc and average precision scores
results
=
run
(
results
=
run
(
"
test
"
,
"
test
"
,
predictions
,
predictions
,
binning
=
10
,
binning
=
10
,
rng
=
rng
,
threshold_a_priori
=
0.3
,
threshold_a_priori
=
0.3
,
)
)
...
...
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