Commit f3417121 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'fix-nan-scores' into 'master'

Fix the pipeline writing invalid scores as `None` instead of `nan`

See merge request !86
parents a12b1fb1 b3fc1693
Pipeline #51272 passed with stages
in 9 minutes
......@@ -224,5 +224,8 @@ def pad_predicted_sample_to_score_line(sample, endl=""):
real_id = claimed_id if sample.is_bonafide else sample.attack_type
if score is None:
score = "nan"
return f"{claimed_id} {real_id} {test_label} {score}{endl}"
# return f"{claimed_id} {model_label} {real_id} {test_label} {score}{endl}"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment