Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.base
Commits
ea3a1441
Commit
ea3a1441
authored
Dec 14, 2021
by
Manuel Günther
Browse files
Used the correct score averaging function for models.
parent
a43b31fd
Pipeline
#56922
passed with stage
in 15 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/algorithm/Algorithm.py
View file @
ea3a1441
...
...
@@ -216,9 +216,9 @@ class Algorithm (object):
"""
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
):
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
:
raise
ValueError
(
"The model does not have the desired format (list, array, ...)"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment