Skip to content

Commit 0c1d1b1

Browse files
authored
Fix return_all_scores in evaluate again to return all (#625)
1 parent 02016e1 commit 0c1d1b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/evaluate/evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def wrapped_program(example_idx, example):
219219
ipython_display(HTML(message))
220220

221221
if return_all_scores and return_outputs:
222-
return round(100 * ncorrect / ntotal, 2), results
222+
return round(100 * ncorrect / ntotal, 2), results, [score for *_, score in reordered_devset]
223223
elif return_all_scores:
224224
return round(100 * ncorrect / ntotal, 2), [score for *_, score in reordered_devset]
225225
elif return_outputs:

0 commit comments

Comments
 (0)