Skip to content
Snippets Groups Projects
Verified Commit f996874d authored by Yannick DAYER's avatar Yannick DAYER
Browse files

fix(scores): reformatting of CMC return tuple.

parent 5ac96342
Branches
Tags
1 merge request!328Scores loading fixes
Pipeline #88623 passed
...@@ -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
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment