From 829d399cd3a7cd703a11a43778b4fb85cf72b3f3 Mon Sep 17 00:00:00 2001 From: Quajak Date: Sun, 10 Mar 2024 16:14:07 -0400 Subject: [PATCH] Fix return_all_scores in evaluate again to return all --- dspy/evaluate/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dspy/evaluate/evaluate.py b/dspy/evaluate/evaluate.py index 1099ede89..486e4b68e 100644 --- a/dspy/evaluate/evaluate.py +++ b/dspy/evaluate/evaluate.py @@ -219,7 +219,7 @@ def wrapped_program(example_idx, example): ipython_display(HTML(message)) if return_all_scores and return_outputs: - return round(100 * ncorrect / ntotal, 2), results + return round(100 * ncorrect / ntotal, 2), results, [score for *_, score in reordered_devset] elif return_all_scores: return round(100 * ncorrect / ntotal, 2), [score for *_, score in reordered_devset] elif return_outputs: