Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
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
bob
bob.bio.base
Commits
f996874d
Verified
Commit
f996874d
authored
1 year ago
by
Yannick DAYER
Browse files
Options
Downloads
Patches
Plain Diff
fix(scores): reformatting of CMC return tuple.
parent
5ac96342
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!328
Scores loading fixes
Pipeline
#88623
passed
11 months ago
Stage: qa
Stage: test
Stage: doc
Stage: dist
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bob/bio/base/score/load.py
+10
-6
10 additions, 6 deletions
src/bob/bio/base/score/load.py
with
10 additions
and
6 deletions
src/bob/bio/base/score/load.py
+
10
−
6
View file @
f996874d
...
@@ -726,12 +726,16 @@ def _split_cmc_scores(
...
@@ -726,12 +726,16 @@ def _split_cmc_scores(
# get all scores in the desired format
# get all scores in the desired format
return
[
return
[
(
(
numpy
.
array
(
neg_dict
[
probe_name
],
numpy
.
float64
)
(
if
probe_name
in
neg_dict
numpy
.
array
(
neg_dict
[
probe_name
],
numpy
.
float64
)
else
None
,
if
probe_name
in
neg_dict
numpy
.
array
(
pos_dict
[
probe_name
],
numpy
.
float64
)
else
None
if
probe_name
in
pos_dict
),
else
None
,
(
numpy
.
array
(
pos_dict
[
probe_name
],
numpy
.
float64
)
if
probe_name
in
pos_dict
else
None
),
)
)
for
probe_name
in
probe_names
for
probe_name
in
probe_names
]
]
...
...
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