> Got Divide by Zero Evalutation Error

Hi,

do anyone have the same problem?

"""
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
Traceback (most recent call last):
File "/tmp/codalab/tmpH1n4gr/run/program/evaluate.py", line 74, in <module>
f1_score = (2 * precision * recall) / (precision + recall)
ZeroDivisionError: float division by zero
"""

I got a divide by zero error for my relation prediction.
Unfortunatelly I am unable to say if none of my predictions are correct.
Otherwise the error may occure, because one relation label has not one correct prediction at all.

@the_organizers: Could you catch the error or fix the code and return zero for all performance metrics?

"""
/tmp/codalab/tmpH1n4gr/run/input
['coopetition', 'history', 'ref', 'tmpQ7Q5qT.txt', 'tmpxZzUzA.zip', 'res', 'tmpCGZu8x.txt', 'metadata', 'tmpMQ_9XH.zip', 'scores', 'tmpevO84c.zip']
['subtask3_test.labels.txt']
['predictions.txt']
"""

Posted by: ottowg @ Feb. 19, 2024, 9:04 a.m.
Post in this thread