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
ea3a1441
Commit
ea3a1441
authored
3 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Used the correct score averaging function for models.
parent
a43b31fd
No related branches found
No related tags found
1 merge request
!270
Resolve "In the Algorithm, the model_fusion_function is ignored"
Pipeline
#56922
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/algorithm/Algorithm.py
+2
-2
2 additions, 2 deletions
bob/bio/base/algorithm/Algorithm.py
with
2 additions
and
2 deletions
bob/bio/base/algorithm/Algorithm.py
+
2
−
2
View file @
ea3a1441
...
@@ -216,9 +216,9 @@ class Algorithm (object):
...
@@ -216,9 +216,9 @@ class Algorithm (object):
"""
"""
if
isinstance
(
models
,
list
):
if
isinstance
(
models
,
list
):
return
[
self
.
probe
_fusion_function
(
self
.
score
(
model
,
probe
))
for
model
in
models
]
return
[
self
.
model
_fusion_function
(
self
.
score
(
model
,
probe
))
for
model
in
models
]
elif
isinstance
(
models
,
numpy
.
ndarray
):
elif
isinstance
(
models
,
numpy
.
ndarray
):
return
[
self
.
probe
_fusion_function
(
self
.
score
(
models
[
i
,:],
probe
))
for
i
in
range
(
models
.
shape
[
0
])]
return
[
self
.
model
_fusion_function
(
self
.
score
(
models
[
i
,:],
probe
))
for
i
in
range
(
models
.
shape
[
0
])]
else
:
else
:
raise
ValueError
(
"
The model does not have the desired format (list, array, ...)
"
)
raise
ValueError
(
"
The model does not have the desired format (list, array, ...)
"
)
...
...
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