Spaces:
Runtime error
Runtime error
Clémentine commited on
Commit ·
992b592
1
Parent(s): 4b5608a
Fix TruthfulQA NaN scores to 0
Browse files72 unmodified lines7374757677767778798072 unmodified lines continue
# Some truthfulQA values are NaNs if task.benchmark == "truthfulqa:mc" and task.benchmark in data["results"]: if math.isnan(float(data["results"][task.benchmark][task.metric])): if task.benchmark == "truthfulqa:mc" and 'harness|truthfulqa:mc|0' in data["results"]: if math.isnan(float(data["results"]['harness|truthfulqa:mc|0'][task.metric])): results[task.benchmark] = 0.0 continue
src/leaderboard/read_evals.py+2-2