Closed janheinrichmerker closed 6 months ago
Ah, yes, now I see, this is only the test, not the implementation. I would suggest to add another small test where the rank is available, or? And maybe it should fail if no rank and no score is available, because then we would likely mask some weird errors?
Yes, the method should probably fail with an exception if no score (or no rank) is given. I recall that tools like trec_eval would usually look only at the scores.
I don't have time to work on this unfortunately
The
persist_and_normalize_run
method currently creates invalid run files when the runDataFrame
'sscore
column containsnan
orNone
values. The proposed tests are meant to detect exactly this bug, in order to be fixed.