From 0c1d1b1b2c9b5d6dc6d565a84bfd8f17c273669d Mon Sep 17 00:00:00 2001 From: Quajak Date: Sun, 10 Mar 2024 16:52:55 -0400 Subject: [PATCH] Fix return_all_scores in evaluate again to return all (#625) --- 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: